From b3a6c39e3d6ba233ea797cb4e30c831896de6a52 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 24 Dec 2024 08:46:34 +0100 Subject: [PATCH] =?UTF-8?q?PT1=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Boiler_2_Stufig_Mit_Fueler/module.php | 8 +++++++- library.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index 6b1ed24..01114ec 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -97,7 +97,13 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule $LegioCounter = $this->GetValue("LegioCounter"); $boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur")); - //Platzhalter PT1 + $boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1")); + // PT1 + $time_constant = 120; // Zeitkonstante in Sekunden (1 Minute) + $delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden) + $alpha = $delta_t / ($time_constant + $delta_t); + SetValue($boilerTemp , $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ))); + $minTemp = $this->GetValue("Mindesttemperatur"); $maxTemp = $this->GetValue("Maximaltemperatur"); $LegioTemp = $this->GetValue("Legionellentemperatur"); diff --git a/library.json b/library.json index 4f2494e..4c2d7bd 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.233", + "version": "0.234", "build": 0, "date": 0