From 3f8b7b712dfc780c93e4d718f0df0439d9aa5ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 8 Oct 2024 16:37:20 +0200 Subject: [PATCH] fehler --- Verbraucher_1_Stufig/module.php | 8 +++++++- library.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Verbraucher_1_Stufig/module.php b/Verbraucher_1_Stufig/module.php index 3301d0b..959dd23 100644 --- a/Verbraucher_1_Stufig/module.php +++ b/Verbraucher_1_Stufig/module.php @@ -33,7 +33,9 @@ class Verbraucher_1_Stufig extends IPSModule { $this->RegisterPropertyInteger("Schaltkontakt1", 0); // Timer für Zeit_Zwischen_Zustandswechseln - $this->RegisterTimer("ZustandswechselTimer", 0, 'Verbraucher_1_Stufig_ResetPowerSteps($_IPS[\'TARGET\']);'); + $this->RegisterTimer("ZustandswechselTimer", 0, 'IPS_RequestAction(' . $this->InstanceID . ', "ResetPowerSteps", "");'); + + //Initialisieren $this->SetValue("Idle", true); @@ -51,6 +53,10 @@ class Verbraucher_1_Stufig extends IPSModule { break; case "GetCurrentData": return $this->GetCurrentData($Value); + break; + case "ResetPowerSteps": + $this->ResetPowerSteps($Value); + break; default: throw new Exception("Invalid Ident"); } diff --git a/library.json b/library.json index 8622718..3be606a 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.18", + "version": "0.19", "build": 0, "date": 0 } \ No newline at end of file