From b4fa0d6bdff5d195c74a01469c0840878e1c4c4c Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 24 Feb 2025 13:04:09 +0100 Subject: [PATCH] code angepasst --- Batterie/module.php | 6 ++++-- library.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index a78157b..974af1d 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -93,9 +93,11 @@ public function RequestAction($Ident, $Value) if ($power >= 0){ - SetValue($this->ReadPropertyFloat("Ladeleistung"), $power); + SetValue($this->ReadPropertyFloat("Ladeleistung"), $power) + SetValue($this->ReadPropertyFloat("Entladeleistung"),0); }else{ - SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power)); + SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power)) + SetValue($this->ReadPropertyFloat("Ladeleistung"), 0); } /* diff --git a/library.json b/library.json index a53a7af..58a6613 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.060", + "version": "1.061", "build": 0, "date": 0 } \ No newline at end of file