diff --git a/Verbraucher_Sperrbar/module.php b/Verbraucher_Sperrbar/module.php index 3985f28..0f43990 100644 --- a/Verbraucher_Sperrbar/module.php +++ b/Verbraucher_Sperrbar/module.php @@ -25,7 +25,7 @@ class Verbraucher_Sperrbar extends IPSModule // Verbraucherspezifischer Timer $this->SetValue("IsTimerActive", false); - $this->RegisterTimer("ZustandswechselTimer",0,"IPS_RequestAction(" .$this->InstanceID .', "ResetPowerSteps", "");'); + $this->RegisterTimer("ZustandswechselTimer",0,"IPS_RequestAction(" .$this->InstanceID .', "ResetTimer", "");'); // Variabeln für Kommunkation mit Manager $this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio"); @@ -82,9 +82,6 @@ class Verbraucher_Sperrbar extends IPSModule } } - - - // Methode zum Setzen der PowerSteps und Timer starten public function SetTimerOn() { @@ -168,7 +165,7 @@ class Verbraucher_Sperrbar extends IPSModule if($Peak==false){ $this->SetValue("PowerSteps",json_encode([0])); } // Wenn Maxlaufzeit nicht erreicht ist - elseif ($DailyOnTime < $maxlaufzeit) { + elseif($DailyOnTime < $maxlaufzeit) { if((GetValue($this->ReadPropertyInteger("Leistung"))>=$this->ReadPropertyInteger("Mindestsperrleistung")) || GetValue($this->ReadPropertyInteger("Schaltkontakt1"))==true) { $this->SetValue("PowerSteps", json_encode([0, (int)$this->GetValue("Letzte_Sperrleistung")])); } else {