loggin entfehrnt

This commit is contained in:
belevo\mh
2025-01-21 07:27:03 +01:00
parent 78d0cd9376
commit 8593991c0f
2 changed files with 2 additions and 10 deletions

View File

@@ -112,30 +112,24 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilertemperatur_glätten = $this->ReadPropertyBoolean("Boilertemperatur_glätten");
if ($boilertemperatur_glätten) {
// Wenn Glättung aktiviert ist, führe das Glätten durch
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
} else {
$boilerPT1 = 0.0;
}
$boilerTemp_test = $this->GetIDForIdent("Boilertemperatur");
if (IPS_VariableExists($boilerTemp_test)) {
$boilerTemp_test = $this->GetValue("Boilertemperatur");
} else {
$boilerTemp_test = 0.0;
}
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
$boilerTemp_test = $this->GetValue("Boilertemperatur");
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
$delta_t = 30;
$alpha = $delta_t / ($time_constant + $delta_t);
$newBoilerTemp = $boilerTemp_test + $alpha * ($boilerPT1 - $boilerTemp_test);
IPS_LogMessage("Boiler", "Mit Glättung, Boilertemperatur:$newBoilerTemp ");
$this->SetValue("Boilertemperatur", $newBoilerTemp);
} else {
@@ -147,15 +141,13 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilerPT1 = 0.0;
}
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
IPS_LogMessage("Boiler", "Keine Gkättung, Boilertemperatur:$boilerPT1");
$this->SetValue("Boilertemperatur", $boilerPT1);
}
//$boilerTemp = $this->GetValue("Boilertemperatur");
IPS_LogMessage("Boiler", "Boilertemperatur:$boilerPT1");
$boilerTemp = $this->GetValue("Boilertemperatur");
$minTemp = $this->GetValue("Mindesttemperatur");
$maxTemp = $this->GetValue("Maximaltemperatur");
$LegioTemp = $this->GetValue("Legionellentemperatur");