From c6f9c802cb7852e1c2077f7be2cec16fe2a234ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 28 Feb 2025 11:26:06 +0100 Subject: [PATCH] =?UTF-8?q?int=20zu=20bool=20ge=C3=A4ndert=20bei=20hauptma?= =?UTF-8?q?nagerabfrage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Manager/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Manager/module.php b/Manager/module.php index 6d77fbf..38e4b39 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -31,7 +31,7 @@ class Manager extends IPSModule { switch ($Ident) { case "DistributeEnergy": - if($this->ReadPropertyInteger("HauptmanagerAktiv")==true ){ + if($this->ReadPropertyBoolean("HauptmanagerAktiv")==true ){ $data = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true); if (isset($data["timestamp"])) { @@ -339,7 +339,7 @@ class Manager extends IPSModule ]; SetValue($this->ReadPropertyInteger("DatenHoch"), json_encode($sendarray)); - + // Sortiere die Verbruacher nach Priorität entweder der PV_Prio oder der Peak Prio usort($filteredVerbraucher, function ($a, $b) use ( $Is_Peak_Shaving diff --git a/library.json b/library.json index 15e7014..ce9b692 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.105", + "version": "1.106", "build": 0, "date": 0 } \ No newline at end of file