Add HoldCharge battery mode (#27906)

This commit is contained in:
Lars Schneider 2026-06-07 18:51:56 +02:00 • committed by GitHub
parent 51845c40a5
commit 03d6c0249a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 78 additions and 5 deletions

View file

@ -225,6 +225,11 @@ func (m *E3dc) setBatteryMode(mode api.BatteryMode) error {
e3dcDischargeBatteryLimit(false, 0),
e3dcBatteryCharge(50000), // max. 50kWh
}
case api.BatteryHoldCharge:
messages = []rscp.Message{
e3dcDischargeBatteryLimit(false, 0),
e3dcBatteryCharge(0),
}
default:
return api.ErrNotAvailable
}

View file

@ -68,6 +68,7 @@ func (m *batterySocLimits) LimitController(socG func() (float64, error), limitSo
case api.BatteryCharge:
return limitSocS(m.MaxSoc)
// BatteryHoldCharge implementable via limit soc
default:
return api.ErrNotAvailable
}