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:
parent
1faa666265
commit
f1d5fd2ad4
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue