Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python module to access local Tesla Powerwall JSON API

Project description

tesla-powerwall-json-py

Python module to access local Tesla Powerwall JSON API https://github.com/piersdd/tesla-powerwall-json-py

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

Description

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 https://developers.home-assistant.io/en and a time series database such as InfluxDB.

Credits

Many thanks to: Vince Loschiavo for documenting the API (https://github.com/vloschiavo/powerwall2)

Božo Stojković for his JSON-Python object code (https://stackoverflow.com/users/4936137/božo-stojković)

License

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


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
Filename, size tesla-powerwall-json-py-0.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page