PT1 hinzugefügt

This commit is contained in:
belevo\mh
2024-12-24 08:46:34 +01:00
parent 865375fdd3
commit b3a6c39e3d
2 changed files with 8 additions and 2 deletions

View File

@@ -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");

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.233",
"version": "0.234",
"build": 0,
"date": 0