loggin entfehrnt

This commit is contained in:
mh
2025-01-21 07:27:03 +01:00
parent 78d0cd9376
commit 8593991c0f
2 changed files with 2 additions and 10 deletions
+1 -9
View File
@@ -112,30 +112,24 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilertemperatur_glätten = $this->ReadPropertyBoolean("Boilertemperatur_glätten"); $boilertemperatur_glätten = $this->ReadPropertyBoolean("Boilertemperatur_glätten");
if ($boilertemperatur_glätten) { if ($boilertemperatur_glätten) {
// Wenn Glättung aktiviert ist, führe das Glätten durch
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1"); $boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
if (IPS_VariableExists($boilerFuehlerPT1ID)) { if (IPS_VariableExists($boilerFuehlerPT1ID)) {
$boilerPT1 = GetValue($boilerFuehlerPT1ID); $boilerPT1 = GetValue($boilerFuehlerPT1ID);
} else { } else {
$boilerPT1 = 0.0; $boilerPT1 = 0.0;
} }
$boilerTemp_test = $this->GetIDForIdent("Boilertemperatur"); $boilerTemp_test = $this->GetIDForIdent("Boilertemperatur");
if (IPS_VariableExists($boilerTemp_test)) { if (IPS_VariableExists($boilerTemp_test)) {
$boilerTemp_test = $this->GetValue("Boilertemperatur"); $boilerTemp_test = $this->GetValue("Boilertemperatur");
} else { } else {
$boilerTemp_test = 0.0; $boilerTemp_test = 0.0;
} }
$boilerPT1 = GetValue($boilerFuehlerPT1ID); $boilerPT1 = GetValue($boilerFuehlerPT1ID);
$boilerTemp_test = $this->GetValue("Boilertemperatur"); $boilerTemp_test = $this->GetValue("Boilertemperatur");
$time_constant= $this->ReadPropertyInteger("ZeitKonstante"); $time_constant= $this->ReadPropertyInteger("ZeitKonstante");
$delta_t = 30; $delta_t = 30;
$alpha = $delta_t / ($time_constant + $delta_t); $alpha = $delta_t / ($time_constant + $delta_t);
$newBoilerTemp = $boilerTemp_test + $alpha * ($boilerPT1 - $boilerTemp_test); $newBoilerTemp = $boilerTemp_test + $alpha * ($boilerPT1 - $boilerTemp_test);
IPS_LogMessage("Boiler", "Mit Glättung, Boilertemperatur:$newBoilerTemp ");
$this->SetValue("Boilertemperatur", $newBoilerTemp); $this->SetValue("Boilertemperatur", $newBoilerTemp);
} else { } else {
@@ -147,15 +141,13 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilerPT1 = 0.0; $boilerPT1 = 0.0;
} }
$boilerPT1 = GetValue($boilerFuehlerPT1ID); $boilerPT1 = GetValue($boilerFuehlerPT1ID);
IPS_LogMessage("Boiler", "Keine Gkättung, Boilertemperatur:$boilerPT1");
$this->SetValue("Boilertemperatur", $boilerPT1); $this->SetValue("Boilertemperatur", $boilerPT1);
} }
//$boilerTemp = $this->GetValue("Boilertemperatur"); $boilerTemp = $this->GetValue("Boilertemperatur");
IPS_LogMessage("Boiler", "Boilertemperatur:$boilerPT1");
$minTemp = $this->GetValue("Mindesttemperatur"); $minTemp = $this->GetValue("Mindesttemperatur");
$maxTemp = $this->GetValue("Maximaltemperatur"); $maxTemp = $this->GetValue("Maximaltemperatur");
$LegioTemp = $this->GetValue("Legionellentemperatur"); $LegioTemp = $this->GetValue("Legionellentemperatur");
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.276", "version": "0.277",
"build": 0, "build": 0,
"date": 0 "date": 0