name vo0n maxcurrent angepasst, und suffix angepasst
This commit is contained in:
@@ -41,9 +41,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumberSpinner",
|
"type": "NumberSpinner",
|
||||||
"name": "Max_Current",
|
"name": "Max_Current_abs",
|
||||||
"caption": "Maximaler Ladestrom",
|
"caption": "Maximaler Ladestrom",
|
||||||
"suffix": "Sekunden"
|
"suffix": "Ampere"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "ValidationTextBox",
|
"type": "ValidationTextBox",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
$this->RegisterPropertyString("Username", "");
|
$this->RegisterPropertyString("Username", "");
|
||||||
$this->RegisterPropertyString("Password", "");
|
$this->RegisterPropertyString("Password", "");
|
||||||
$this->RegisterPropertyInteger("Interval", 5); // Recheninterval
|
$this->RegisterPropertyInteger("Interval", 5); // Recheninterval
|
||||||
$this->RegisterPropertyInteger("Max_Current", 32); // Recheninterval
|
$this->RegisterPropertyInteger("Max_Current_abs", 32); // Recheninterval
|
||||||
|
|
||||||
// Ladestationspezifische Variabeln
|
// Ladestationspezifische Variabeln
|
||||||
$this->RegisterVariableFloat("Max_Current","Maximaler Ladestrom","", 0);
|
$this->RegisterVariableFloat("Max_Current","Maximaler Ladestrom","", 0);
|
||||||
@@ -307,8 +307,8 @@ class Ladestation_v2 extends IPSModule
|
|||||||
else{
|
else{
|
||||||
$maxCurrent = 1.5 + ($this->GetValue("Ladeleistung_Effektiv") / (1.71*400));
|
$maxCurrent = 1.5 + ($this->GetValue("Ladeleistung_Effektiv") / (1.71*400));
|
||||||
}
|
}
|
||||||
if($maxCurrent>$this->ReadPropertyInteger("Max_Current")){
|
if($maxCurrent>$this->ReadPropertyInteger("Max_Current_abs")){
|
||||||
$maxCurrent = $this->ReadPropertyInteger("Max_Current");
|
$maxCurrent = $this->ReadPropertyInteger("Max_Current_abs");
|
||||||
}
|
}
|
||||||
$this->SetValue("Max_Current", $maxCurrent);
|
$this->SetValue("Max_Current", $maxCurrent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user