From a9fbf5438e6c8c3130596162fa1f6729b9feba20 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Fri, 3 Jan 2025 07:10:40 +0100 Subject: [PATCH] ok --- Boiler_2_Stufig_Mit_Fueler/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index 1c25e2c..eb67186 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -98,12 +98,12 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule $boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1")); - $boilerPT1Filtered = $this->GetValue("Boilertemperatur"); + $boilerTemp = $this->GetValue("Boilertemperatur"); // PT $time_constant = 120; // Zeitkonstante in Sekunden (1 Minute) $delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden) $alpha = $delta_t / ($time_constant + $delta_t); - $newBoilerTemp = $boilerPT1Filtered + $alpha * ($boilerPT1 - $boilerPT1Filtered); + $newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp); $this->SetValue("Boilertemperatur", $newBoilerTemp); //$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp )); diff --git a/library.json b/library.json index 04c3641..cbe7658 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.246", + "version": "0.247", "build": 0, "date": 0