no message
This commit is contained in:
@@ -102,6 +102,9 @@ class Ladestation_v2 extends IPSModule
|
||||
$this->RegisterTimer("Timer_Do_UserCalc_EVC",$this->ReadPropertyInteger("Interval")*1000,"IPS_RequestAction(" .$this->InstanceID .', "Do_UserCalc", "");');
|
||||
$this->RegisterTimer("Timer_Refresh_Token",0,"IPS_RequestAction(" .$this->InstanceID .', "Refresh_Token", "");');
|
||||
|
||||
$this->RegisterVariableInteger("Mindestaldestrom", "Mindestaldestrom", "", 0);
|
||||
$this->EnableAction("Mindestaldestrom");
|
||||
|
||||
}
|
||||
|
||||
public function ApplyChanges()
|
||||
@@ -551,7 +554,15 @@ class Ladestation_v2 extends IPSModule
|
||||
// power > 0: keine 0 am Anfang, Schleife normal durchlaufen
|
||||
} else {
|
||||
// Timer aus: wie bisher, 0 am Anfang
|
||||
$resultArray[] = 0;
|
||||
|
||||
if ($is_1_ph) {
|
||||
$resultArray[] = $this->GetValue("Mindestaldestrom") * 230;
|
||||
} else {
|
||||
$resultArray[] = $this->GetValue("Mindestaldestrom") * 400 * 1.71;
|
||||
}
|
||||
}
|
||||
|
||||
$resultArray[] = $this-;
|
||||
}
|
||||
|
||||
// Schleife wie gehabt
|
||||
|
||||
Reference in New Issue
Block a user