bogosj / tesla

Provides a wrapper around the API to easily query and command a Telsa car.
Other
23 stars 18 forks source link

Support for reading/writing powerwall Storm Mode #140

Open mikecardwell opened 4 months ago

mikecardwell commented 4 months ago

This PR allows people with Powerwalls to read and set the storm watch mode using the code:

energySiteStatus, err := energySite.EnergySiteStatus()
fmt.Printf("Storm Watch enabled = %t\n", energySiteStatus.StormModeEnabled)
err := energySite.SetStormMode(true)
err := energySite.SetStormMode(false)

As per this UI in the Tesla mobile app:

image