diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 513e744..a28fcfe 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -343,7 +343,10 @@ 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 @@ -436,7 +439,7 @@ class Ladestation_v2 extends IPSModule } - if($counter>(40/($this->ReadPropertyInteger("Interval")))){ + if($counter>(45/($this->ReadPropertyInteger("Interval")))){ $this->SetValue("Pending_Counter", 0); $this->Calc_Max_Current($this->GetValue("Is_1_ph"));