no message

This commit is contained in:
2025-11-24 11:46:08 +01:00
parent dde54768b1
commit 10b53b2463

View File

@@ -208,24 +208,25 @@ class Shelly_Parser_MQTT extends IPSModule
$sid = @IPS_GetObjectIDByIdent($ident, $this->InstanceID); $sid = @IPS_GetObjectIDByIdent($ident, $this->InstanceID);
if ($sid === false) { if ($sid === false) {
$sid = IPS_CreateScript(0); $sid = IPS_CreateScript(0);
IPS_SetParent($sid, $this->InstanceID); IPS_SetParent($sid, $this->InstanceID);
IPS_SetIdent($sid, $ident); IPS_SetIdent($sid, $ident);
IPS_SetName($sid, "Shelly Action Handler"); IPS_SetName($sid, "Shelly Action Handler");
$code = <<<'EOF' $code = <<<'EOF'
<?php <?php
$moduleID = IPS_GetParent($_IPS['SELF']); $moduleID = IPS_GetParent($_IPS['SELF']);
$varID = $_IPS['VARIABLE']; $varID = $_IPS['VARIABLE'];
$value = $_IPS['VALUE']; $value = $_IPS['VALUE'];
$ident = IPS_GetObject($varID)['ObjectIdent']; $ident = IPS_GetObject($varID)['ObjectIdent'];
RequestAction($moduleID, $ident, $value); IPS_RequestAction($moduleID, $ident, $value);
?> ?>
EOF; EOF;
IPS_SetScriptContent($sid, $code); IPS_SetScriptContent($sid, $code);
} }
@@ -233,6 +234,7 @@ EOF;
return $sid; return $sid;
} }
/* --------------------------------------------------------- /* ---------------------------------------------------------
* VARIABLEN * VARIABLEN
* ---------------------------------------------------------*/ * ---------------------------------------------------------*/