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"));