no message
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user