variabel porperty schwierigkeiten
This commit is contained in:
@@ -20,6 +20,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
||||
$this->RegisterVariableInteger("Maximaltemperatur","Maximaltemperatur","",60);
|
||||
$this->RegisterVariableInteger("Legionellentemperatur","Legionellentemperatur","",65);
|
||||
$this->RegisterVariableInteger("LegioCounter", "LegioCounter", "", 0);
|
||||
$this->RegisterVariableInteger("Boilertemperatur_nacht_PT1", "Boilertemperatur_nacht_PT1", "", 0);
|
||||
|
||||
// Variabeln für Kommunkation mit Manager
|
||||
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
||||
@@ -98,19 +99,16 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
||||
|
||||
$boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur"));
|
||||
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
||||
IPS_LogMessage("Boiler", "Boilertemperatur : " . $boilerTemp);
|
||||
IPS_LogMessage("Boiler", "Boilerfuehler_PT1 : " . $boilerPT1);
|
||||
|
||||
|
||||
|
||||
// PT1
|
||||
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
||||
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
||||
$alpha = $delta_t / ($time_constant + $delta_t);
|
||||
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
|
||||
$this->SetValue("Boilertemperatur", $newBoilerTemp);
|
||||
$this->SetValue("Boilertemperatur_nacht_PT1", $newBoilerTemp);
|
||||
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));
|
||||
IPS_LogMessage("Boiler", "Neue Boilertemp. " . $newBoilerTemp);
|
||||
|
||||
|
||||
|
||||
|
||||
$minTemp = $this->GetValue("Mindesttemperatur");
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.238",
|
||||
"version": "0.239",
|
||||
|
||||
"build": 0,
|
||||
"date": 0
|
||||
|
||||
Reference in New Issue
Block a user