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 * ---------------------------------------------------------*/