logging hinzugefügt

This commit is contained in:
mh
2024-12-24 09:31:53 +01:00
parent 55e6ff8405
commit 715e38f713
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -98,11 +98,20 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur")); $boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur"));
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1")); $boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
IPS_LogMessage("Boiler", "Boilertemperatur : " . $boilerTemp);
IPS_LogMessage("Boiler", "Boilerfuehler_PT1 : " . $boilerPT1);
// PT1 // PT1
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute) $time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden) $delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
$alpha = $delta_t / ($time_constant + $delta_t); $alpha = $delta_t / ($time_constant + $delta_t);
$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp )); $newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
$this->SetValue("Boilertemperatur", $newBoilerTemp);
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));
IPS_LogMessage("Boiler", "Neue Boilertemp. " . $newBoilerTemp);
$minTemp = $this->GetValue("Mindesttemperatur"); $minTemp = $this->GetValue("Mindesttemperatur");
$maxTemp = $this->GetValue("Maximaltemperatur"); $maxTemp = $this->GetValue("Maximaltemperatur");
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.237", "version": "0.238",
"build": 0, "build": 0,
"date": 0 "date": 0