no message
This commit is contained in:
@@ -117,12 +117,14 @@ class Ladestation_v2 extends IPSModule
|
|||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "Solarladen":
|
|
||||||
$this->SetValue("Solarladen", (bool)$Value);
|
case "Solarladen":
|
||||||
break;
|
$this->SetValue("Solarladen", (bool)$Value);
|
||||||
case "Ladebereit":
|
break;
|
||||||
$this->SetValue("Ladebereit", (bool)$Value);
|
|
||||||
break;
|
case "Ladebereit":
|
||||||
|
$this->SetValue("Ladebereit", (bool)$Value);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Exception("Invalid Ident");
|
throw new Exception("Invalid Ident");
|
||||||
@@ -137,10 +139,12 @@ class Ladestation_v2 extends IPSModule
|
|||||||
if($this->Get_Car_Status($carType)==true){
|
if($this->Get_Car_Status($carType)==true){
|
||||||
$this->SetValue("Car_detected", true);
|
$this->SetValue("Car_detected", true);
|
||||||
if($this->GetValue("Max_Current")<6){
|
if($this->GetValue("Max_Current")<6){
|
||||||
|
$this->SetValue("Car_is_full", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$this->SetValue("Car_detected", false);
|
$this->SetValue("Car_detected", false);
|
||||||
|
$this->SetValue("Car_is_full", false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -387,6 +391,9 @@ class Ladestation_v2 extends IPSModule
|
|||||||
if($this->GetValue("Aktuelle_Leistung")>(1.11*$this->GetValue("Ladeleistung_Effektiv"))){
|
if($this->GetValue("Aktuelle_Leistung")>(1.11*$this->GetValue("Ladeleistung_Effektiv"))){
|
||||||
$this->SetValue("Pending_Counter", $counter+1);
|
$this->SetValue("Pending_Counter", $counter+1);
|
||||||
|
|
||||||
|
}elseif(max($this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))<(1.11*$this->GetValue("Ladeleistung_Effektiv"))){ // diesen elseif ggf wieder rauslöschen
|
||||||
|
$this->SetValue("Pending_Counter", $counter+1);
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user