From eb293b285ac9ad82146e95b79d5f2f5db2ab0eac Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 1 Jul 2026 22:04:48 +0200 Subject: [PATCH] =?UTF-8?q?EEBus:=20release=20=C2=A714a/LPC=20limit=20when?= =?UTF-8?q?=20it=20expires=20(#31393)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- charger/eebus-ohpcf.go | 4 +++- meter/eebus.go | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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