Custom vehicle: add charge controller (#13119)

This commit is contained in:
andig 2024-03-23 18:14:14 +01:00 • committed by GitHub
parent 6f8d0b8a89
commit a5c7b9fd64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 1684 additions and 259 deletions

View file

@ -162,10 +162,9 @@ type SocLimiter interface {
TargetSoc() (float64, error)
}
// VehicleChargeController allows to start/stop the charging session on the vehicle side
type VehicleChargeController interface {
StartCharge() error
StopCharge() error
// ChargeController allows to start/stop the charging session on the vehicle side
type ChargeController interface {
ChargeEnable(bool) error
}
// Resurrector provides wakeup calls to the vehicle with an API call or a CP interrupt from the charger