evt Fehler behoben

This commit is contained in:
belevo\mh
2024-12-31 11:37:17 +01:00
parent dfa4f29ea6
commit d83f8a5767
2 changed files with 4 additions and 4 deletions

View File

@@ -99,13 +99,13 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur"));
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
$boilerPT1Filtered = $this->ReadVariableInteger("Boilerfuehler_PT1_Filtered");
// 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);
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
$this->SetValue("Boilerfuehler_PT1", $newBoilerTemp);
$newBoilerTemp = $boilerPT1Filtered + $alpha * ($boilerPT1 - $boilerPT1Filtered);
$this->SetValue("Boilertemperatur_nacht_PT1", $newBoilerTemp);
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));

View File

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