From 8d0c09ada38da494f175327651c3c2a595ed95a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Mon, 11 Nov 2024 08:38:06 +0100 Subject: [PATCH] Zugriffe waren falsch --- WP_Steuerung/module.php | 14 +++++++------- library.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/WP_Steuerung/module.php b/WP_Steuerung/module.php index fc705e9..4159739 100644 --- a/WP_Steuerung/module.php +++ b/WP_Steuerung/module.php @@ -72,7 +72,7 @@ class WP_Steuerung extends IPSModule { $sperrzei_abs = 6*60*60; } - if(GetValue($this->ReadPropertyInteger("Wolkenschwellwert"))ReadPropertyInteger("Wolkenwert")) || $sperrzei_abs < 0 ){ + if($this->ReadPropertyInteger("Wolkenschwellwert")ReadPropertyInteger("Wolkenwert")) || $sperrzei_abs < 0 ){ $sperrzei_abs = 0; } @@ -103,7 +103,7 @@ class WP_Steuerung extends IPSModule { }elseif($state == 1) // Normalbetrieb { - if($LastPeak && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))) { + if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) { $this->SetValue("Zustand_WP", 1); if($its_lock_time){ $this->SetValue("Zustand_WP", 2); @@ -112,7 +112,7 @@ class WP_Steuerung extends IPSModule { $this->SetValue("Zustand_WP", 2); } - elseif($LastPeak == false && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))){ + elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){ $this->SetValue("Zustand_WP", 3); } @@ -126,7 +126,7 @@ class WP_Steuerung extends IPSModule { }elseif($state == 2) // Sperre { - if($LastPeak && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))) { + if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) { $this->SetValue("Zustand_WP", 1); if($its_lock_time){ $this->SetValue("Zustand_WP", 2); @@ -135,7 +135,7 @@ class WP_Steuerung extends IPSModule { $this->SetValue("Zustand_WP", 2); } - elseif($LastPeak == false && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))){ + elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){ $this->SetValue("Zustand_WP", 3); } @@ -149,13 +149,13 @@ class WP_Steuerung extends IPSModule { }elseif($state == 3) // Erhöht { - if($LastPeak && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))) { + if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) { $this->SetValue("Zustand_WP", 1); } elseif($LastPeak && $power == 0){ $this->SetValue("Zustand_WP", 2); } - elseif($LastPeak == false && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))){ + elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){ $this->SetValue("Zustand_WP", 3); } diff --git a/library.json b/library.json index cd6b67c..00ee253 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.112", + "version": "0.113", "build": 0, "date": 0 } \ No newline at end of file