From b18fd1d61fbb0da6cf4ca99cb1c1e88562ef32c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 5 Mar 2025 07:10:12 +0100 Subject: [PATCH] =?UTF-8?q?Fl=C3=BCchtigkeitsfehler=20behoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HauptManager/module.php | 2 +- Manager/module.php | 4 ++-- library.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HauptManager/module.php b/HauptManager/module.php index 6c99461..1453195 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -12,7 +12,7 @@ class HauptManager extends IPSModule $this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0 $this->RegisterPropertyString("Verbraucher_Liste", "[]"); - $this->RegisterVariableInteger("Gesamtnetzbezug", 0); + $this->RegisterVariableInteger("Gesamtnetzbezug", "Gesamtnetzbezug", "", 0); // Timer registrieren $this->RegisterTimer("Timer_DistributeEnergy",5000,"IPS_RequestAction(" .$this->InstanceID .', "DistributeEnergy", "");'); diff --git a/Manager/module.php b/Manager/module.php index 65eae43..ec30a02 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -336,11 +336,11 @@ class Manager extends IPSModule $answerArray = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true); - foreach($answerArray["User"] as $user){} + foreach($answerArray["User"] as $user){ IPS_RequestAction($user["InstanceID"],"SetAktuelle_Leistung",$user["Set_Leistung"]); IPS_RequestAction($user["InstanceID"],"GetCurrentData", $answerArray["Is_Peak_Shaving"]); - + } diff --git a/library.json b/library.json index ca9bc22..57df96f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.225", + "version": "1.226", "build": 0, "date": 0 } \ No newline at end of file