optimiert

This commit is contained in:
belevo\mh
2025-02-25 16:19:38 +01:00
parent 1ca92414ef
commit 5887912085
2 changed files with 13 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ public function RequestAction($Ident, $Value)
}
if($this->GetValue("Is_Peak_Shaving")==true){
if ($power >= 0) {
$this->SetValue("Ladeleistung", $power);
$this->SetValue("Entladeleistung", 0);
@@ -115,7 +115,18 @@ public function RequestAction($Ident, $Value)
$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
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.083",
"version": "1.084",
"build": 0,
"date": 0
}