diff --git a/Puffer/module.php b/Puffer/module.php index a01dcc4..715e972 100644 --- a/Puffer/module.php +++ b/Puffer/module.php @@ -64,11 +64,7 @@ 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) @@ -165,7 +161,9 @@ class Puffer extends IPSModule } IPS_LogMessage("Puffer", "nach Glättung und vor AT berechnung"); + $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 @@ -183,6 +181,8 @@ class Puffer extends IPSModule IPS_LogMessage("Puffer", "VT: ".$VT); IPS_LogMessage("Puffer", "m: ".$m); IPS_LogMessage("Puffer", "at: ".$at); + IPS_LogMessage("Puffer", "Property Aussentemp: " . $this->ReadPropertyInteger("Aussentemp")); + IPS_LogMessage("Puffer", "Variable Aussentemperatur: " . $this->GetValue("Aussentemperatur")); $boilerTemp = $this->GetValue("Boilertemperatur"); $pufferLeistung = $this->ReadPropertyInteger("PufferLeistung");