no message
This commit is contained in:
@@ -23,7 +23,7 @@ class Puffer extends IPSModule
|
||||
|
||||
// Puffer spezifische Variablen
|
||||
$this->RegisterVariableInteger("Steigung","Steigung","",0);
|
||||
$this->RegisterVariableInteger("Maximaltemperatur","Maximaltemperatur","",60);
|
||||
$this->RegisterVariableInteger("Maximaltemperatur"," Berechnete Maximaltemperatur VT","",60);
|
||||
$this->RegisterVariableInteger("Boilertemperatur", "Boilertemperatur", "", 40);
|
||||
$this->RegisterVariableInteger("Aussentemperatur", "Aussentemperatur", "", 15);
|
||||
|
||||
@@ -155,19 +155,13 @@ class Puffer extends IPSModule
|
||||
|
||||
$at = GetValue($this->ReadPropertyInteger("Aussentemp"));
|
||||
$this->SetValue("Aussentemperatur", $at);
|
||||
|
||||
IPS_LogMessage("Puffer", "aa " . $at);
|
||||
IPS_LogMessage("Puffer", "Property Aussentemp: " . $this->ReadPropertyInteger("Aussentemp"));
|
||||
IPS_LogMessage("Puffer", "Variable Aussentemperatur: " . $this->GetValue("Aussentemperatur"));
|
||||
|
||||
$m = $this->GetValue("Steigung");
|
||||
$minVT = $this->ReadPropertyInteger("MinVT_Temp"); // z.B. 20
|
||||
$maxVT = $this->ReadPropertyInteger("MaxVT_Temp"); // z.B. 80
|
||||
$maxAT = $this->ReadPropertyInteger("MaxAT_Temp"); // z.B. 20
|
||||
$minAT = $this->ReadPropertyInteger("MinAT_Temp"); // z.B. 0
|
||||
IPS_LogMessage("Puffer", "minVT: $minVT, maxVT: $maxVT, minAT: $minAT, maxAT: $maxAT");
|
||||
$m = ($maxVT - $minVT) / ($minAT - $maxAT);
|
||||
IPS_LogMessage("Puffer", "Steigung: " . $m);
|
||||
|
||||
$this->SetValue("Steigung", $m);
|
||||
|
||||
if ($at < $minAT){
|
||||
@@ -183,7 +177,7 @@ class Puffer extends IPSModule
|
||||
$pufferLeistung = $this->ReadPropertyInteger("PufferLeistung");
|
||||
|
||||
|
||||
IPS_LogMessage("Puffer", "vor peak if");
|
||||
|
||||
if ($Peak) {
|
||||
$this->SetValue( "PowerSteps", json_encode([0]) );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user