evcc-io/api/batterymode.go
2023-11-16 20:10:57 +01:00

12 lines
293 B
Go

package api
// BatteryMode is the home battery operation mode. Valid values are normal, locked and charge
type BatteryMode int
//go:generate enumer -type BatteryMode -trimprefix Battery -transform=lower
const (
BatteryUnknown BatteryMode = iota
BatteryNormal
BatteryHold
BatteryCharge
)