From 8a591ab1c76789933b73849f2e37a484c11568f8 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 1 Jun 2026 13:48:04 +0200 Subject: [PATCH] no message --- MQTTBatterySDL/form.json | 14 +++++++------- MQTTBatterySDL/module.php | 13 +++++++++++++ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/MQTTBatterySDL/form.json b/MQTTBatterySDL/form.json index 4a8ccf7..29254cd 100644 --- a/MQTTBatterySDL/form.json +++ b/MQTTBatterySDL/form.json @@ -3,18 +3,18 @@ { "type": "ValidationTextBox", "name": "TopicSuffix", - "caption": "Topic Suffix / x" + "caption": "Topic Suffix" }, { "type": "SelectVariable", "name": "ReqActionID", - "caption": "Ausgabe-Variable / RequestAction" + "caption": "Ausgabe-Variable / Nennleistung" }, { - "type": "SelectInstance", - "name": "PublishInstanceID", - "caption": "MQTT Publish Helper" -}, + "type": "SelectInstance", + "name": "PublishInstanceID", + "caption": "MQTT Publish Helper" + }, { "type": "SelectVariable", "name": "SoCID", @@ -23,7 +23,7 @@ { "type": "SelectVariable", "name": "PowerProductionID", - "caption": "Aktuelle Leistung Variable" + "caption": "Aktuelle Leistung SDL" }, { "type": "NumberSpinner", diff --git a/MQTTBatterySDL/module.php b/MQTTBatterySDL/module.php index fe4d38b..1111838 100644 --- a/MQTTBatterySDL/module.php +++ b/MQTTBatterySDL/module.php @@ -142,6 +142,19 @@ class MQTTBatterySDL extends IPSModule $dischargePower = $this->ReadPropertyInteger('DischargePower'); + + // ------------------------------------------------- + // Grenz Soc's + // ------------------------------------------------- + if (($soc <= 4 || $soc >= 95) && $strategy != "restore") { + + SetValue( + $reqActionID, + 0 + ); + + return; + } // ------------------------------------------------- // Strategy activate // -------------------------------------------------