Fix EEBUS enable detection (#9574)

- If the EV is charging, make sure to report as being enabled
- Fixes https://github.com/evcc-io/evcc/issues/9473
This commit is contained in:
Andreas Linde 2023-08-28 16:58:52 +02:00 • committed by GitHub
parent 1faa666265
commit f1d5fd2ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,6 +274,11 @@ func (c *EEBus) Enabled() (bool, error) {
return c.expectedEnableUnpluggedState, nil
}
// if the EV is charging
if state == api.StatusC {
return true, nil
}
limits, err := c.emobility.EVLoadControlObligationLimits()
if err != nil {
// there are no overload protection limits available, e.g. because the data was not received yet