From 462870ee881f739e1526f8faf40d7b1358a5b9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 25 Apr 2025 10:07:22 +0200 Subject: [PATCH] Fehler im code der neuen module behoben --- Ansteuerung_Askoheat/module.php | 2 +- Verbraucher_Sperrbar/module.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Ansteuerung_Askoheat/module.php b/Ansteuerung_Askoheat/module.php index 5ed066d..18efdd5 100644 --- a/Ansteuerung_Askoheat/module.php +++ b/Ansteuerung_Askoheat/module.php @@ -132,7 +132,7 @@ class Ansteuerung_Askoheat extends IPSModule // Methode zum Setzen des aktuellen Stromverbrauchs public function SetAktuelle_Leistung(int $power) { - IPS_RequestAction($this->ReadPropertyInteger("Variable_Leistung"), $power); + SetValue($this->ReadPropertyInteger("Variable_Leistung"), $power); // Prüfe auf Änderung der Power im Vergleich zur letzten Einstellung $lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung")); diff --git a/Verbraucher_Sperrbar/module.php b/Verbraucher_Sperrbar/module.php index 650243d..532339a 100644 --- a/Verbraucher_Sperrbar/module.php +++ b/Verbraucher_Sperrbar/module.php @@ -17,6 +17,8 @@ class Verbraucher_Sperrbar extends IPSModule // Verbraucherspezifische Variabeln $this->RegisterVariableInteger("DailyOnTime", "DailyOnTime", "", 0); $this->RegisterVariableBoolean("IsTimerActive", "IsTimerActive", "", 0); + $this->RegisterVariableBoolean("IstNacht", "IstNacht", "", 0); + // Verbraucherspezifischer Timer $this->SetValue("IsTimerActive", false);