vorheriger Code, ohne test

This commit is contained in:
belevo\mh
2025-01-21 07:07:55 +01:00
parent 03869aab99
commit f4b430a445
2 changed files with 6 additions and 6 deletions

View File

@@ -123,9 +123,9 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$boilerPT1 = 0.0;
}
$boilerTemp_test = $this->GetIDForIdent("Boilertemperatur_test");
$boilerTemp_test = $this->GetIDForIdent("Boilertemperatur");
if (IPS_VariableExists($boilerTemp_test)) {
$boilerTemp_test = $this->GetValue("Boilertemperatur_test");
$boilerTemp_test = $this->GetValue("Boilertemperatur");
} else {
$boilerTemp_test = 0.0;
}
@@ -136,8 +136,8 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$delta_t = 30;
$alpha = $delta_t / ($time_constant + $delta_t);
$newBoilerTemp = $boilerTemp_test + $alpha * ($boilerPT1 - $boilerTemp_test);
IPS_LogMessage("Boiler", "Mit Glättung, Boilertemperatur_test:$newBoilerTemp ");
$this->SetValue("Boilertemperatur_test", $newBoilerTemp);
IPS_LogMessage("Boiler", "Mit Glättung, Boilertemperatur:$newBoilerTemp ");
$this->SetValue("Boilertemperatur", $newBoilerTemp);
} else {
// Wenn Glättung nicht aktiviert ist, setze die Boilertemperatur direkt auf den Wert des Boilerfühlers
@@ -149,7 +149,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
}
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
IPS_LogMessage("Boiler", "Keine Gkättung, Boilertemperatur:$boilerPT1");
$this->SetValue("Boilertemperatur_test", $boilerPT1);
$this->SetValue("Boilertemperatur", $boilerPT1);
}

View File

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