From 2a654c8604044a9daf8dcd6baa1400f49b44dfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 13 Nov 2024 14:47:22 +0100 Subject: [PATCH] datentyp korrigiert --- WP_Steuerung/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WP_Steuerung/module.php b/WP_Steuerung/module.php index a0aea7f..bcd6a98 100644 --- a/WP_Steuerung/module.php +++ b/WP_Steuerung/module.php @@ -38,7 +38,7 @@ class WP_Steuerung extends IPSModule { $this->RegisterPropertyInteger("Referenzzeit", 0); $this->RegisterPropertyInteger("Sperrkontakt", 0); $this->RegisterPropertyInteger("Kontakt_Erhoeung", 0); - $this->RegisterPropertyInteger("Schwellwert_Anwenden", false); + $this->RegisterPropertyBoolean("Schwellwert_Anwenden", false); $this->RegisterPropertyInteger("Schwellwert_Variable", 0); $this->RegisterPropertyInteger("WW_Temp", 1); @@ -261,7 +261,7 @@ class WP_Steuerung extends IPSModule { $this->SetValue("PowerSteps", json_encode([$this->GetValue("CurrentPower")])); - }elseif($this->ReadPropertyInteger("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("WW_Temp")ReadPropertyInteger("Schwellwert_Variable"))) ){ + }elseif($this->ReadPropertyBoolean("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("WW_Temp")ReadPropertyInteger("Schwellwert_Variable"))) ){ $this->SetValue("PowerSteps", json_encode([$this->ReadPropertyInteger("WP_Leistung")])); diff --git a/library.json b/library.json index 83625dd..236222b 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.130", + "version": "0.131", "build": 0, "date": 0 } \ No newline at end of file