optimiert
This commit is contained in:
@@ -104,7 +104,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($this->GetValue("Is_Peak_Shaving")==true){
|
||||||
if ($power >= 0) {
|
if ($power >= 0) {
|
||||||
$this->SetValue("Ladeleistung", $power);
|
$this->SetValue("Ladeleistung", $power);
|
||||||
$this->SetValue("Entladeleistung", 0);
|
$this->SetValue("Entladeleistung", 0);
|
||||||
@@ -115,7 +115,18 @@ public function RequestAction($Ident, $Value)
|
|||||||
$this->SetValue("Laden3_Entladen4", 4);
|
$this->SetValue("Laden3_Entladen4", 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
if ($power >= 0) {
|
||||||
|
$this->SetValue("Ladeleistung", $power);
|
||||||
|
$this->SetValue("Entladeleistung", 0);
|
||||||
|
$this->SetValue("Laden3_Entladen4", 4);
|
||||||
|
} else {
|
||||||
|
$this->SetValue("Entladeleistung", abs($power));
|
||||||
|
$this->SetValue("Ladeleistung", 0);
|
||||||
|
$this->SetValue("Laden3_Entladen4", 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Prüfe auf Änderung der Leistung im Vergleich zur letzten Einstellung
|
// Prüfe auf Änderung der Leistung im Vergleich zur letzten Einstellung
|
||||||
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.083",
|
"version": "1.084",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user