no message

This commit is contained in:
2025-04-25 11:51:23 +02:00
parent 27b0526698
commit 7469d6ed1e

View File

@@ -167,10 +167,10 @@ class Verbraucher_Sperrbar extends IPSModule
$istSperre = $this->GetValue("Sperrung_Aktiv");
if($istSperre ==false && GetValue($this->ReadPropertyInteger("Leistung"))>=$this->GetValue("Mindestsperrleistung")){
if($istSperre ==false && GetValue($this->ReadPropertyInteger("Leistung"))>=$this->ReadPropertyInteger("Mindestsperrleistung")){
$istSperre = true;
$this->SetValue("Sperrung_Aktiv", true);
}elseif($istSperre ==true && GetValue($this->ReadPropertyInteger("Leistung"))<=$this->GetValue("Mindestsperrleistung")){
}elseif($istSperre ==true && GetValue($this->ReadPropertyInteger("Leistung"))<=$this->ReadPropertyInteger("Mindestsperrleistung")){
$istSperre = false;
$this->SetValue("Sperrung_Aktiv", false);
}