From 0cde8f28e104ceca8703da2b6ffa99f806a8a51c Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 24 Feb 2025 10:23:04 +0100 Subject: [PATCH] - --- Batterie/module.php | 6 ++---- library.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index f95a6d7..4ceb9df 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -96,10 +96,8 @@ public function RequestAction($Ident, $Value) $spannung = $this->ReadPropertyInteger("Batteriespannung"); - //$ladestrom = GetValue($this->GetIDForIdent("Ladestrom")); - //$entladestrom = GetValue($this->GetIDForIdent("Entladestrom")); - $ladestrom = $this->ReadPropertyFloat("Ladestrom"); - $entladestrom = $this->ReadPropertyFloat("Entladestrom"); + $ladestrom = $this->ReadVariableFloat("Ladestrom"); + $entladestrom = $this->ReadVariableFloat("Entladestrom"); if ($spannung <= 0) { IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig."); diff --git a/library.json b/library.json index 69eb7d1..cf82611 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.052", + "version": "1.053", "build": 0, "date": 0 } \ No newline at end of file