From fe31d5b4bc43d754fdd10af339eec66aa406595a Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 25 Sep 2025 11:47:17 +0200 Subject: [PATCH] no message --- Puffer/module.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Puffer/module.php b/Puffer/module.php index 8a17aba..ac3c705 100644 --- a/Puffer/module.php +++ b/Puffer/module.php @@ -63,6 +63,12 @@ class Puffer extends IPSModule $m = ($minVT - $maxVT) / ($minAT - $maxAT); $this->SetValue("Steigung", $m); + + // Property auslesen + $at = $this->ReadPropertyInteger("Aussentemp"); + + // Wert in Variable setzen + $this->SetValue("Aussentemperatur", $at); } public function RequestAction($Ident, $Value) @@ -159,9 +165,6 @@ class Puffer extends IPSModule } IPS_LogMessage("Puffer", "nach Glättung und vor AT berechnung"); - // VT anhand AT berechnen - $at = $this->ReadPropertyInteger("Aussentemp"); - $this->SetValue("Aussentemperatur", $at); $m = $this->GetValue("Steigung"); $minVT = $this->ReadPropertyInteger("MinVT_Temp"); // z.B. 20 $maxVT = $this->ReadPropertyInteger("MaxVT_Temp"); // z.B. 80 @@ -172,7 +175,7 @@ class Puffer extends IPSModule } elseif ($at > $maxAT){ $VT = $minVT; } else { - $VT = $m * ($at - $maxAT) + $maxVT; + $VT = $m * $at + $maxVT; } $this->SetValue("Maximaltemperatur", $VT ); IPS_LogMessage("Puffer", "VT: ".$VT);