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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for tesla_powerwall-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd94ea621319899b1efcf96701bc3bfe01a2b17c7016e5d3b745ec2e8d806dba |
|
MD5 | f02a2d0c2a142b946d183c2fa5e31b65 |
|
BLAKE2b-256 | ee224dea6dcb58dcf04bd035a9c80831f9f333d2d88e2c28096c6e90988c9b82 |