diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index 67901cc..8e6f7f0 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -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"); diff --git a/library.json b/library.json index d4337a7..325ae2e 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.276", + "version": "0.277", "build": 0, "date": 0