From adc5018da4c0184ea4a10acc106e8047de6c3776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 5 Mar 2025 07:06:34 +0100 Subject: [PATCH] =?UTF-8?q?Netzbezugvariable=20hinzugef=C3=BChgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HauptManager/module.php | 5 +++-- library.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HauptManager/module.php b/HauptManager/module.php index 88ece5e..6c99461 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -12,6 +12,8 @@ class HauptManager extends IPSModule $this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0 $this->RegisterPropertyString("Verbraucher_Liste", "[]"); + $this->RegisterVariableInteger("Gesamtnetzbezug", 0); + // Timer registrieren $this->RegisterTimer("Timer_DistributeEnergy",5000,"IPS_RequestAction(" .$this->InstanceID .', "DistributeEnergy", "");'); } @@ -63,8 +65,7 @@ class HauptManager extends IPSModule } - IPS_LogMessage("HauptManager netzbezug", $Netzbezug); - + $this->SetValue("Gesamtnetzbezug", $Netzbezug); $Peakleistung = $this->ReadPropertyInteger("Peakleistung"); diff --git a/library.json b/library.json index 9aac48b..ca9bc22 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.224", + "version": "1.225", "build": 0, "date": 0 } \ No newline at end of file