Skip to main content

API for Tesla Powerwall

Project description

Python tesla powerwall API

For more information please refer to the documentation of the powerwall rest api

Usage

Setup connection

from tesla_powerwall import PowerWall

power_wall = PowerWall("<ip of your powerwall>")

Current battery level

power_wall.charge
#=> 70.0

Current power supply/draw

Get current power supply/draw for home, solar, battery and grid

power_wall.battery_power
#=> -2350
power_wall.grid_power
#=> -21.449996948242188

If you want to know wether you are drawing or sending you can use sending_to_{battery, solar, grid} and drawing_from_{battery, solar, grid}.

Note: sending to solar occasionly happens at night as you can read in the documentation

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-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

tesla_powerwall-0.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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