What's Changed
- PyPI 0.4.0
- Updates to poll() to force call (ignore cache) by @wcwong in #8
- Added
grid_status()function to return state of grid by @wcwong in #9 - Added
system_status()andbattery_blocks()by @wcwong in #10 - Added
alerts()function to return an array of device alerts. - Added
get_reserve()function to return battery reserve setting. - Expanded class to include settings for cache expiration (
pwcacheexpire) and connectiontimeout.
# Force Poll
pw.poll('/api/system_status/soe',force=True)
'{"percentage":100}'
# Powerwall Alerts
pw.alerts()
['PodCommissionTime', 'GridCodesWrite', 'GridCodesWrite', 'FWUpdateSucceeded', 'THC_w155_Backup_Genealogy_Updated', 'PINV_a067_overvoltageNeutralChassis', 'THC_w155_Backup_Genealogy_Updated', 'PINV_a067_overvoltageNeutralChassis', 'PVS_a018_MciStringB', 'SYNC_a001_SW_App_Boot']
# Battery Reserve Setting
pw.get_reserve()
20.0
# State of Grid
pw.grid_status()
'UP'New Contributors
Full Changelog: v0.3.0...v0.4.0