no message
This commit is contained in:
@@ -10,6 +10,14 @@ class Pufferspeicher extends IPSModule
|
||||
|
||||
$this->RegisterPropertyInteger("PufferLeistung", 6000);
|
||||
$this->RegisterPropertyInteger("PufferTeilLeistung", 3000);
|
||||
|
||||
$this->RegisterPropertyInteger("Stufe1", 100);
|
||||
$this->RegisterPropertyInteger("Stufe2", 1000);
|
||||
$this->RegisterPropertyInteger("Stufe3", 3000);
|
||||
$this->RegisterPropertyInteger("Stufe4", 6000);
|
||||
|
||||
|
||||
|
||||
$this->RegisterPropertyInteger("ZeitKonstante", 120);
|
||||
$this->RegisterPropertyInteger("Pufferfuehler_PT1", 0);
|
||||
$this->RegisterPropertyInteger("Heizkontakt2_Puffer", 0);
|
||||
@@ -87,11 +95,11 @@ class Pufferspeicher extends IPSModule
|
||||
public function SetAktuelle_Leistung(int $power)
|
||||
{
|
||||
// Schalte Kontakt Teillast und Vollast entsprechend der Power-Einstellung
|
||||
if ($power == $this->ReadPropertyInteger("PufferLeistung")) {
|
||||
if ($power == $this->ReadPropertyInteger("Stufe4")) {
|
||||
SetValue($this->ReadPropertyInteger("Heizkontakt2_Puffer"), true);
|
||||
SetValue($this->ReadPropertyInteger("Heizkontakt1_Puffer"), false);
|
||||
} elseif (
|
||||
$power == $this->ReadPropertyInteger("PufferTeilLeistung")
|
||||
$power == $this->ReadPropertyInteger("Stufe3")
|
||||
) {
|
||||
SetValue($this->ReadPropertyInteger("Heizkontakt2_Puffer"), false);
|
||||
SetValue($this->ReadPropertyInteger("Heizkontakt1_Puffer"), true);
|
||||
|
||||
Reference in New Issue
Block a user