diff --git a/Batterie/module.php b/Batterie/module.php index e91cfe5..a78157b 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -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)); } /* diff --git a/library.json b/library.json index 366ac30..a53a7af 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.059", + "version": "1.060", "build": 0, "date": 0 } \ No newline at end of file