no message
This commit is contained in:
@@ -117,12 +117,14 @@ class Ladestation_v2 extends IPSModule
|
||||
|
||||
}
|
||||
break;
|
||||
case "Solarladen":
|
||||
$this->SetValue("Solarladen", (bool)$Value);
|
||||
break;
|
||||
case "Ladebereit":
|
||||
$this->SetValue("Ladebereit", (bool)$Value);
|
||||
break;
|
||||
|
||||
case "Solarladen":
|
||||
$this->SetValue("Solarladen", (bool)$Value);
|
||||
break;
|
||||
|
||||
case "Ladebereit":
|
||||
$this->SetValue("Ladebereit", (bool)$Value);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Exception("Invalid Ident");
|
||||
@@ -137,10 +139,12 @@ class Ladestation_v2 extends IPSModule
|
||||
if($this->Get_Car_Status($carType)==true){
|
||||
$this->SetValue("Car_detected", true);
|
||||
if($this->GetValue("Max_Current")<6){
|
||||
$this->SetValue("Car_is_full", true);
|
||||
}
|
||||
|
||||
}else{
|
||||
$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"))){
|
||||
$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{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user