Schwellwert für aufhebung der WP-Sperre bei WW eingebaut
This commit is contained in:
@@ -46,6 +46,25 @@
|
|||||||
"name": "Kontakt_Erhoeung",
|
"name": "Kontakt_Erhoeung",
|
||||||
"caption": "Zu schaltenden Kontakt für WP-Erhöhung",
|
"caption": "Zu schaltenden Kontakt für WP-Erhöhung",
|
||||||
"test": true
|
"test": true
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"type": "CheckBox",
|
||||||
|
"name": "Schwellwert_Anwenden",
|
||||||
|
"caption": "Schwellwert zum Entsperren Aktiv",
|
||||||
|
"test": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "NumberSpinner",
|
||||||
|
"name": "Schwellwert_Variable",
|
||||||
|
"caption": "Warmwassertemperatur auf welche der Schwellwert angewendet wird.",
|
||||||
|
"test": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SelectVariable",
|
||||||
|
"name": "WW_Temp",
|
||||||
|
"caption": "Variable mit der Aktuellen Warmwassertemperatur",
|
||||||
|
"test": true
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class WP_Steuerung extends IPSModule {
|
|||||||
|
|
||||||
$this->RegisterVariableInteger("Mindestlaufzeit", "IdleCounter", "", 0);
|
$this->RegisterVariableInteger("Mindestlaufzeit", "IdleCounter", "", 0);
|
||||||
|
|
||||||
$this->RegisterVariableInteger("Zustand_WP", "Zustand_WP", "", 0);
|
$this->RegisterVariableInteger("Zustand_WP", "Zustand_WP", "", 1);
|
||||||
|
|
||||||
$this->RegisterVariableInteger("WP_Laufzeit_Zahler", "WP_Laufzeit_Zahler", "", 20*12);
|
$this->RegisterVariableInteger("WP_Laufzeit_Zahler", "WP_Laufzeit_Zahler", "", 20*12);
|
||||||
$this->RegisterVariableBoolean("LetzterPeakwert", "LetzterPeakwert", "", false);
|
$this->RegisterVariableBoolean("LetzterPeakwert", "LetzterPeakwert", "", false);
|
||||||
@@ -38,6 +38,9 @@ class WP_Steuerung extends IPSModule {
|
|||||||
$this->RegisterPropertyInteger("Referenzzeit", 0);
|
$this->RegisterPropertyInteger("Referenzzeit", 0);
|
||||||
$this->RegisterPropertyInteger("Sperrkontakt", 0);
|
$this->RegisterPropertyInteger("Sperrkontakt", 0);
|
||||||
$this->RegisterPropertyInteger("Kontakt_Erhoeung", 0);
|
$this->RegisterPropertyInteger("Kontakt_Erhoeung", 0);
|
||||||
|
$this->RegisterPropertyInteger("Schwellwert_Anwenden", false);
|
||||||
|
$this->RegisterPropertyInteger("Schwellwert_Variable", 0);
|
||||||
|
$this->RegisterPropertyInteger("WW_Temp", 1);
|
||||||
|
|
||||||
//Initialisieren
|
//Initialisieren
|
||||||
$this->SetValue("Idle", true);
|
$this->SetValue("Idle", true);
|
||||||
@@ -241,6 +244,9 @@ class WP_Steuerung extends IPSModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Methode zum Abrufen der aktuellen Daten
|
// Methode zum Abrufen der aktuellen Daten
|
||||||
public function GetCurrentData(bool $Peak) {
|
public function GetCurrentData(bool $Peak) {
|
||||||
|
|
||||||
@@ -255,6 +261,10 @@ class WP_Steuerung extends IPSModule {
|
|||||||
|
|
||||||
$this->SetValue("PowerSteps", json_encode([$this->GetValue("CurrentPower")]));
|
$this->SetValue("PowerSteps", json_encode([$this->GetValue("CurrentPower")]));
|
||||||
|
|
||||||
|
}elseif($this->ReadPropertyInteger("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("WW_Temp")<GetValue($this->ReadPropertyInteger("Schwellwert_Variable"))) ){
|
||||||
|
|
||||||
|
|
||||||
|
$this->SetValue("PowerSteps", json_encode([$this->ReadPropertyInteger("WP_Leistung")]));
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.129",
|
"version": "0.130",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user