Schwellwert für aufhebung der WP-Sperre bei WW eingebaut

This commit is contained in:
2024-11-13 14:43:14 +01:00
parent 57b959e9fb
commit f40c097f47
3 changed files with 32 additions and 3 deletions

View File

@@ -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{