datentyp korrigiert

This commit is contained in:
2024-11-13 14:47:22 +01:00
parent f40c097f47
commit 2a654c8604
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class WP_Steuerung extends IPSModule {
$this->RegisterPropertyInteger("Referenzzeit", 0);
$this->RegisterPropertyInteger("Sperrkontakt", 0);
$this->RegisterPropertyInteger("Kontakt_Erhoeung", 0);
$this->RegisterPropertyInteger("Schwellwert_Anwenden", false);
$this->RegisterPropertyBoolean("Schwellwert_Anwenden", false);
$this->RegisterPropertyInteger("Schwellwert_Variable", 0);
$this->RegisterPropertyInteger("WW_Temp", 1);
@@ -261,7 +261,7 @@ 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"))) ){
}elseif($this->ReadPropertyBoolean("Schwellwert_Anwenden")==true && ($this->ReadPropertyInteger("WW_Temp")<GetValue($this->ReadPropertyInteger("Schwellwert_Variable"))) ){
$this->SetValue("PowerSteps", json_encode([$this->ReadPropertyInteger("WP_Leistung")]));