From f1b523c1ec14541a99fd2270b49612784a3bf2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 8 Apr 2025 07:47:33 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 5b150b2..153d0a3 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -117,13 +117,15 @@ class Ladestation_v2 extends IPSModule $this->SetValue("Pending_Counter", 0); if($this->GetValue("Ladeleistung_Effektiv")>7500){ $this->SetValue("Is_1_ph", false); - + $this->Calc_Max_Current(false); + } else{ $this->SetValue("Is_1_ph", true); + $this->Calc_Max_Current(true); + } - $this->Calc_Max_Current($this->GetValue("Is_1_ph")); $this->SetValue("Car_Detected", true); @@ -353,7 +355,7 @@ class Ladestation_v2 extends IPSModule } - if($counter>(20/($this->ReadPropertyInteger("Interval")*1000))){ + if($counter>(20/($this->ReadPropertyInteger("Interval")))){ $this->SetValue("Pending_Counter", 0); $this->Calc_Max_Current($this->GetValue("Is_1_ph"));