Add battery discharge control logic (#10553)

This commit is contained in:
Michael Heß 2023-11-09 12:42:39 +01:00 • committed by GitHub
parent 0242dad7e9
commit 5453820eb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 341 additions and 7 deletions

12
api/batterymode.go Normal file
View 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
)