no message
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user