From 1125bef9497127e0e161165cad8a56ca9400d5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 22 Jan 2025 10:16:45 +0100 Subject: [PATCH] adnere auch mit this ausgestattet --- Batterie/module.php | 7 ++++--- Ladestation_Universal/module.php | 6 +++--- Verbraucher_1_Stufig/module.php | 6 +++--- WP_Steuerung/module.php | 4 ++-- library.json | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index e97aab4..090fe3c 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -67,14 +67,15 @@ class Batterie extends IPSModule public function RequestAction($Ident, $Value) { switch ($Ident) { + case "SetAktuelle_Leistung": - SetValue("Power", (int)$Value); + $this->SetValue("Power", (int)$Value); break; case "GetCurrentData": - SetValue("Is_Peak_Shaving", (bool)$Value); + $this->SetValue("Is_Peak_Shaving", (bool)$Value); break; - + case "Do_UserCalc": diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 6ad815c..47658bd 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -62,13 +62,13 @@ class Ladestation_Universal extends IPSModule switch ($Ident) { case "SetAktuelle_Leistung": - SetValue("Power", (int)$Value); + $this->SetValue("Power", (int)$Value); break; case "GetCurrentData": - SetValue("Is_Peak_Shaving", (bool)$Value); + $this->SetValue("Is_Peak_Shaving", (bool)$Value); break; - + case "Do_UserCalc": $this->SetAktuelle_Leistung($this->GetValue("Power")); diff --git a/Verbraucher_1_Stufig/module.php b/Verbraucher_1_Stufig/module.php index 26f32c0..e4313cc 100644 --- a/Verbraucher_1_Stufig/module.php +++ b/Verbraucher_1_Stufig/module.php @@ -52,13 +52,13 @@ class Verbraucher_1_Stufig extends IPSModule public function RequestAction($Ident, $Value) { switch ($Ident) { - + case "SetAktuelle_Leistung": - SetValue("Power", (int)$Value); + $this->SetValue("Power", (int)$Value); break; case "GetCurrentData": - SetValue("Is_Peak_Shaving", (bool)$Value); + $this->SetValue("Is_Peak_Shaving", (bool)$Value); break; case "ResetPowerSteps": diff --git a/WP_Steuerung/module.php b/WP_Steuerung/module.php index c3b9ed6..1983100 100644 --- a/WP_Steuerung/module.php +++ b/WP_Steuerung/module.php @@ -60,11 +60,11 @@ class WP_Steuerung extends IPSModule switch ($Ident) { case "SetAktuelle_Leistung": - SetValue("Power", (int)$Value); + $this->SetValue("Power", (int)$Value); break; case "GetCurrentData": - SetValue("Is_Peak_Shaving", (bool)$Value); + $this->SetValue("Is_Peak_Shaving", (bool)$Value); break; case "ResetPowerSteps": diff --git a/library.json b/library.json index 2c52b44..e33abf6 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.290", + "version": "0.291", "build": 0, "date": 0