diff --git a/charger/eebus-ohpcf.go b/charger/eebus-ohpcf.go index f935cedb7..25c3f7d3c 100644 --- a/charger/eebus-ohpcf.go +++ b/charger/eebus-ohpcf.go @@ -369,7 +369,9 @@ func (c *EEBusOHPCF) Dimmed() (bool, error) { return false, err } - return limit.IsActive && limit.Value > 0, nil + // an active limit means dimmed; the applied §14a limit value is 0W, so a + // value-based check would never report the dimmed state and never release it + return limit.IsActive, nil } // Dim implements the api.Dimmer interface. It writes a §14a/LPC consumption diff --git a/meter/eebus.go b/meter/eebus.go index ed410c7b6..0884aef15 100644 --- a/meter/eebus.go +++ b/meter/eebus.go @@ -231,8 +231,9 @@ func (c *EEBus) Dimmed() (bool, error) { return false, err } - // Check if limit is active and has a valid power value - return limit.IsActive && limit.Value > 0, nil + // an active limit means dimmed; the applied limit value is 0W, so a + // value-based check would never report the dimmed state and never release it + return limit.IsActive, nil } // Dim implements the api.Dimmer interface