Schwellwert für aufhebung der WP-Sperre bei WW eingebaut
This commit is contained in:
@@ -23,12 +23,12 @@ class WP_Steuerung extends IPSModule {
|
||||
|
||||
$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->RegisterVariableBoolean("LetzterPeakwert", "LetzterPeakwert", "", false);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->RegisterPropertyInteger("WP_Leistung", 6000);
|
||||
@@ -38,6 +38,9 @@ class WP_Steuerung extends IPSModule {
|
||||
$this->RegisterPropertyInteger("Referenzzeit", 0);
|
||||
$this->RegisterPropertyInteger("Sperrkontakt", 0);
|
||||
$this->RegisterPropertyInteger("Kontakt_Erhoeung", 0);
|
||||
$this->RegisterPropertyInteger("Schwellwert_Anwenden", false);
|
||||
$this->RegisterPropertyInteger("Schwellwert_Variable", 0);
|
||||
$this->RegisterPropertyInteger("WW_Temp", 1);
|
||||
|
||||
//Initialisieren
|
||||
$this->SetValue("Idle", true);
|
||||
@@ -241,6 +244,9 @@ class WP_Steuerung extends IPSModule {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Methode zum Abrufen der aktuellen Daten
|
||||
public function GetCurrentData(bool $Peak) {
|
||||
|
||||
@@ -255,6 +261,10 @@ class WP_Steuerung extends IPSModule {
|
||||
|
||||
$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{
|
||||
|
||||
Reference in New Issue
Block a user