no message
This commit is contained in:
+7
-4
@@ -63,6 +63,12 @@ class Puffer extends IPSModule
|
|||||||
|
|
||||||
$m = ($minVT - $maxVT) / ($minAT - $maxAT);
|
$m = ($minVT - $maxVT) / ($minAT - $maxAT);
|
||||||
$this->SetValue("Steigung", $m);
|
$this->SetValue("Steigung", $m);
|
||||||
|
|
||||||
|
// Property auslesen
|
||||||
|
$at = $this->ReadPropertyInteger("Aussentemp");
|
||||||
|
|
||||||
|
// Wert in Variable setzen
|
||||||
|
$this->SetValue("Aussentemperatur", $at);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function RequestAction($Ident, $Value)
|
public function RequestAction($Ident, $Value)
|
||||||
@@ -159,9 +165,6 @@ class Puffer extends IPSModule
|
|||||||
}
|
}
|
||||||
IPS_LogMessage("Puffer", "nach Glättung und vor AT berechnung");
|
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");
|
$m = $this->GetValue("Steigung");
|
||||||
$minVT = $this->ReadPropertyInteger("MinVT_Temp"); // z.B. 20
|
$minVT = $this->ReadPropertyInteger("MinVT_Temp"); // z.B. 20
|
||||||
$maxVT = $this->ReadPropertyInteger("MaxVT_Temp"); // z.B. 80
|
$maxVT = $this->ReadPropertyInteger("MaxVT_Temp"); // z.B. 80
|
||||||
@@ -172,7 +175,7 @@ class Puffer extends IPSModule
|
|||||||
} elseif ($at > $maxAT){
|
} elseif ($at > $maxAT){
|
||||||
$VT = $minVT;
|
$VT = $minVT;
|
||||||
} else {
|
} else {
|
||||||
$VT = $m * ($at - $maxAT) + $maxVT;
|
$VT = $m * $at + $maxVT;
|
||||||
}
|
}
|
||||||
$this->SetValue("Maximaltemperatur", $VT );
|
$this->SetValue("Maximaltemperatur", $VT );
|
||||||
IPS_LogMessage("Puffer", "VT: ".$VT);
|
IPS_LogMessage("Puffer", "VT: ".$VT);
|
||||||
|
|||||||
Reference in New Issue
Block a user