From f1d5fd2ad47d9c95934bc81fb2ccf502ec189cce Mon Sep 17 00:00:00 2001 From: Andreas Linde <42185+DerAndereAndi@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:58:52 +0200 Subject: [PATCH] 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 --- charger/eebus.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charger/eebus.go b/charger/eebus.go index dd8f431f1..75f34d53a 100644 --- a/charger/eebus.go +++ b/charger/eebus.go @@ -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