evcc-io/api/batterymode.go
2026-06-09 10:41:06 +02:00

13 lines
330 B
Go

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