v0.10.10 - Add Grid Control
What's Changed
- Add Grid Control Functions by @jasonacox in #109
- Add functions and command line options to allow user to get and set grid charging and exporting modes (re: #108).
- Supports FleetAPI and Cloud modes only (not Local mode)
Command Line Examples
# Connect to Cloud
python3 -m pypowerwall setup # or fleetapi
# Get Current Settings
python3 -m pypowerwall get
# Turn on Grid charging
python3 -m pypowerwall set -gridcharging on
# Turn off Grid charging
python3 -m pypowerwall set -gridcharging off
# Set Grid Export to Solar (PV) energy only
python3 -m pypowerwall set -gridexport pv_only
# Set Grid Export to Battery and Solar energy
python3 -m pypowerwall set -gridexport battery_ok
# Disable export of all energy to grid
python3 -m pypowerwall set -gridexport never
Programming Examples
import pypowerwall
# FleetAPI Mode
PW_HOST=""
PW_EMAIL="[email protected]"
pw = pypowerwall.Powerwall(host=PW_HOST, email=PW_EMAIL, fleetapi=True)
# Get modes
pw.get_grid_charging()
pw.get_grid_export()
# Set modes
pw.set_grid_charging("on") # set grid charging mode (on or off)
pw.set_grid_export("pv_only") # set grid export mode (battery_ok, pv_only, or never)
Full Changelog: v0.10.9...v0.10.10