Skip to main content

Python module to access local Tesla Powerwall JSON API

Project description


Python module to access local Tesla Powerwall JSON API

NOTE: Tesla offer no official API to their Powerwall & Gateway; therefore, this library may well stop working at any time without warning.

Written by Piers Dawson-Damer


Python interface to the local Tesla Powerwall Gateway API.

  • Meter information: Battery, Grid, Load & Solar
  • Battery state of charge
  • Toggle the operation state from Charge to Discharge.
  • Set reserve for backup/blackout event.

Principlly developed to interface with the excellent Home Assistant project and a time series database such as InfluxDB.


Many thanks to: Vince Loschiavo for documenting the API (

Božo Stojković for his JSON-Python object code (žo-stojković)


Apache-2.0. By providing a contribution, you agree the contribution is licensed under Apache-2.0. This code is provided as-is with no warranty. Use at your own risk.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tesla-powerwall-json-py, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size tesla_powerwall_json_py-0.0.1-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tesla-powerwall-json-py-0.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page