From f9c9fccedb7100a2041ef2dc0cec9b67306c0a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 22 Apr 2025 13:15:33 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index cf65e92..a71e8a1 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -344,6 +344,9 @@ class Ladestation_v2 extends IPSModule public function SetAktuelle_Leistung(int $power) { + if($power==0){ + $this->SetValue("Pending_Counter", 0); + } $internalPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung")); // Aktuelle Leistungsvorgabe setzen SetValue($this->GetIDForIdent("Aktuelle_Leistung"), $power); @@ -363,6 +366,7 @@ class Ladestation_v2 extends IPSModule $idleCounter = GetValue($this->GetIDForIdent("IdleCounter")); if ($idleCounter > 0) { $idleCounter--; + $this->SetValue("Pending_Counter", 0); SetValue($this->GetIDForIdent("IdleCounter"), $idleCounter); if ($idleCounter == 0) { SetValue($this->GetIDForIdent("Idle"), true);