From 04d67d2e0d688a8c20edd9a347dad2b09ea62229 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 11 Dec 2024 16:47:53 +0100 Subject: [PATCH] - --- Batterie/module.php | 8 ++++---- library.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index 9e32cb0..fc069e2 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -11,11 +11,11 @@ class Batterie extends IPSModule $this->RegisterPropertyInteger("Batteriespannung", 50); $this->RegisterPropertyInteger("AufdasNachladen",0); $this->RegisterPropertyInteger("MinimumEntladen",0); - $this->RegisterPropertyInteger("Entladestrom",0); - $this->RegisterPropertyInteger("Ladestrom",0); $this->RegisterPropertyInteger("Batterieladezustand",0); // Variabeln für Kommunkation mit Manager + $this->RegisterVariableInteger("Ladestrom", "Ladestrom", "", 0); + $this->RegisterVariableInteger("Entladestrom", "Entladestrom", "", 0); $this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0); $this->RegisterVariableString("PowerSteps", "PowerSteps"); $this->RegisterVariableBoolean("Idle", "Idle", "", 0); @@ -68,8 +68,8 @@ class Batterie extends IPSModule { // Batterie-spezifische Eigenschaften abrufen $spannung = $this->ReadPropertyInteger("Batteriespannung"); - $entladestrom = $this->ReadPropertyInteger("Entladestrom"); - $ladestrom = $this->ReadPropertyInteger("Ladestrom"); + $entladestrom = $this->ReadVariableInteger("Entladestrom"); + $ladestrom = $this->ReadVariableInteger("Ladestrom"); $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Batterie entladen oder laden basierend auf der Leistung diff --git a/library.json b/library.json index 864830e..6a186ff 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.188", + "version": "0.189", "build": 0, "date": 0 } \ No newline at end of file