From f4b430a44523b710b72ddb6d4d117f5248f2ad06 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 21 Jan 2025 07:07:55 +0100 Subject: [PATCH] vorheriger Code, ohne test --- Boiler_2_Stufig_Mit_Fueler/module.php | 10 +++++----- library.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index 9b05be4..c79d6b6 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -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); } diff --git a/library.json b/library.json index 81d58cc..146d724 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.274", + "version": "0.275", "build": 0, "date": 0