no message

This commit is contained in:
2025-09-19 15:34:54 +02:00
parent 29d17dc5e2
commit 6b5f647c43

View File

@@ -237,6 +237,15 @@ class Ladestation_v2 extends IPSModule
$this->SetValue("Car_detected", true); $this->SetValue("Car_detected", true);
if ($this->GetValue("Is_1_ph")) {
$power = $this->GetValue("Mindestaldestrom") * 230;
}
else {
$power = $this->GetValue("Mindestaldestrom") * 400 * 1.71;
}
$this->SetValue("Power", $power)
} }
else{ else{
@@ -522,9 +531,11 @@ class Ladestation_v2 extends IPSModule
{ {
$maxCurrent = 32; $maxCurrent = 32;
if($is_1_ph){ if($is_1_ph){
$maxCurrent = 2.5 + ($this->GetValue("Ladeleistung_Effektiv") / 230); $maxCurrent = 2.5 + ($this->GetValue("Ladeleistung_Effektiv") / 230);
} }
else{ else{
$maxCurrent = 2.5 + ($this->GetValue("Ladeleistung_Effektiv") / (1.71*400)); $maxCurrent = 2.5 + ($this->GetValue("Ladeleistung_Effektiv") / (1.71*400));
} }
if($maxCurrent>$this->ReadPropertyInteger("Max_Current_abs")){ if($maxCurrent>$this->ReadPropertyInteger("Max_Current_abs")){
@@ -721,7 +732,10 @@ class Ladestation_v2 extends IPSModule
if($counter>(90/($this->ReadPropertyInteger("Interval")))){ if($counter>(90/($this->ReadPropertyInteger("Interval")))){
$this->SetValue("Pending_Counter", 0); $this->SetValue("Pending_Counter", 0);
if(max(json_decode($this->GetValue("PowerSteps")))==$this->GetVaue($power)){
$this->Calc_Max_Current($this->GetValue("Is_1_ph")); $this->Calc_Max_Current($this->GetValue("Is_1_ph"));
}
} }
return $powerSteps; return $powerSteps;