evt Fehler korrigiert

This commit is contained in:
belevo\mh
2025-02-24 11:57:02 +01:00
parent 10c9acb352
commit 4cfbf9430a
2 changed files with 3 additions and 5 deletions

View File

@@ -91,13 +91,11 @@ public function RequestAction($Ident, $Value)
public function SetAktuelle_Leistung(int $power)
{
$entladeleistung = $this->ReadPropertyFloat("Entladeleistung");
$ladeleistung = $this->ReadPropertyFloat("Ladeleistung");
if ($power >= 0){
SetValue($this->ReadPropertyInteger("Ladeleistung"), $power);
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
}else{
SetValue($this->ReadPropertyInteger("Entladeleistung"), abs($power));
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
}
/*

View File

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