diff --git a/Verbraucher_Sperrbar/module.php b/Verbraucher_Sperrbar/module.php index 6c869b0..69423f7 100644 --- a/Verbraucher_Sperrbar/module.php +++ b/Verbraucher_Sperrbar/module.php @@ -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); }