Add battery discharge control logic (#10553)
This commit is contained in:
parent
0242dad7e9
commit
5453820eb6
10 changed files with 341 additions and 7 deletions
12
api/batterymode.go
Normal file
12
api/batterymode.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package api
|
||||
|
||||
// BatteryMode is the home battery operation mode. Valid values are normal, locked and charge
|
||||
type BatteryMode int
|
||||
|
||||
//go:generate enumer -type BatteryMode
|
||||
const (
|
||||
BatteryUnknown BatteryMode = iota
|
||||
BatteryNormal
|
||||
BatteryLocked
|
||||
BatteryCharge
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue