evcc-io/api/batterymode.go
2025-02-12 09:49:31 +01:00

12 lines
301 B
Go

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