no message

This commit is contained in:
dh
2025-04-08 07:47:33 +02:00
parent 7491a5b042
commit f1b523c1ec
+4 -2
View File
@@ -117,13 +117,15 @@ class Ladestation_v2 extends IPSModule
$this->SetValue("Pending_Counter", 0); $this->SetValue("Pending_Counter", 0);
if($this->GetValue("Ladeleistung_Effektiv")>7500){ if($this->GetValue("Ladeleistung_Effektiv")>7500){
$this->SetValue("Is_1_ph", false); $this->SetValue("Is_1_ph", false);
$this->Calc_Max_Current(false);
} }
else{ else{
$this->SetValue("Is_1_ph", true); $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); $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->SetValue("Pending_Counter", 0);
$this->Calc_Max_Current($this->GetValue("Is_1_ph")); $this->Calc_Max_Current($this->GetValue("Is_1_ph"));