From 2dc17da7ea948a77e8caab04348c2fd3fb8c8b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 13 Nov 2024 14:52:24 +0100 Subject: [PATCH] Schwellwert und WW temp vertauscht --- WP_Steuerung/form.json | 2 +- WP_Steuerung/module.php | 4 ++-- library.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WP_Steuerung/form.json b/WP_Steuerung/form.json index 1fb4b0c..a86a354 100644 --- a/WP_Steuerung/form.json +++ b/WP_Steuerung/form.json @@ -56,7 +56,7 @@ }, { "type": "NumberSpinner", - "name": "Schwellwert_Variable", + "name": "Schwellwert", "caption": "Warmwassertemperatur auf welche der Schwellwert angewendet wird.", "test": true }, diff --git a/WP_Steuerung/module.php b/WP_Steuerung/module.php index bcd6a98..909a3b6 100644 --- a/WP_Steuerung/module.php +++ b/WP_Steuerung/module.php @@ -39,7 +39,7 @@ class WP_Steuerung extends IPSModule { $this->RegisterPropertyInteger("Sperrkontakt", 0); $this->RegisterPropertyInteger("Kontakt_Erhoeung", 0); $this->RegisterPropertyBoolean("Schwellwert_Anwenden", false); - $this->RegisterPropertyInteger("Schwellwert_Variable", 0); + $this->RegisterPropertyInteger("Schwellwert", 0); $this->RegisterPropertyInteger("WW_Temp", 1); //Initialisieren @@ -261,7 +261,7 @@ class WP_Steuerung extends IPSModule { $this->SetValue("PowerSteps", json_encode([$this->GetValue("CurrentPower")])); - }elseif($this->ReadPropertyBoolean("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("WW_Temp")ReadPropertyInteger("Schwellwert_Variable"))) ){ + }elseif($this->ReadPropertyBoolean("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("Schwellwert")>GetValue($this->ReadPropertyInteger("WW_Temp"))) ){ $this->SetValue("PowerSteps", json_encode([$this->ReadPropertyInteger("WP_Leistung")])); diff --git a/library.json b/library.json index 236222b..9c5c648 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.131", + "version": "0.132", "build": 0, "date": 0 } \ No newline at end of file