From 10b53b2463fd2d1ad48fdc75f7d7c10f118b7bab Mon Sep 17 00:00:00 2001 From: "belevo\\dh" Date: Mon, 24 Nov 2025 11:46:08 +0100 Subject: [PATCH] no message --- Shelly_Parser_MQTT/module.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Shelly_Parser_MQTT/module.php b/Shelly_Parser_MQTT/module.php index 040b1b7..5f3fbb5 100644 --- a/Shelly_Parser_MQTT/module.php +++ b/Shelly_Parser_MQTT/module.php @@ -208,24 +208,25 @@ class Shelly_Parser_MQTT extends IPSModule $sid = @IPS_GetObjectIDByIdent($ident, $this->InstanceID); if ($sid === false) { + $sid = IPS_CreateScript(0); IPS_SetParent($sid, $this->InstanceID); IPS_SetIdent($sid, $ident); IPS_SetName($sid, "Shelly Action Handler"); $code = <<<'EOF' - -EOF; + ?> + EOF; IPS_SetScriptContent($sid, $code); } @@ -233,6 +234,7 @@ EOF; return $sid; } + /* --------------------------------------------------------- * VARIABLEN * ---------------------------------------------------------*/