Skip to main content

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.

Source Distribution

tesla-powerwall-json-py-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

tesla_powerwall_json_py-0.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file tesla-powerwall-json-py-0.0.1.tar.gz.

File metadata

  • Download URL: tesla-powerwall-json-py-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for tesla-powerwall-json-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a7530779fdb4a2b1cfafac3910c828fe3e3f42c3756fc30b4190c31a59a476b5
MD5 678357875af2e6a9e8d406517f7bf80e
BLAKE2b-256 d567f35a0d37d4e86b151191c8199baa1d6a34ca6c9cd3696a84f41310a40b8f

See more details on using hashes here.

File details

Details for the file tesla_powerwall_json_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tesla_powerwall_json_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for tesla_powerwall_json_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db249ab7e27c5025f89f4fe64eef8f8a522501d8e88ca365481606705c0ce1ff
MD5 361e9fecf704ba25df66bff9b132c702
BLAKE2b-256 e18e30b382b6f1cfb7fcee534dccc62dc495e3bcd51856c3b50144e3a31232d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page