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);
if ($sid === false) {
$sid = IPS_CreateScript(0);
IPS_SetParent($sid, $this->InstanceID);
IPS_SetIdent($sid, $ident);
IPS_SetName($sid, "Shelly Action Handler");
$code = <<<'EOF'
<?php
<?php
$moduleID = IPS_GetParent($_IPS['SELF']);
$varID = $_IPS['VARIABLE'];
$value = $_IPS['VALUE'];
$moduleID = IPS_GetParent($_IPS['SELF']);
$varID = $_IPS['VARIABLE'];
$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);
}
@@ -233,6 +234,7 @@ EOF;
return $sid;
}
/* ---------------------------------------------------------
* VARIABLEN
* ---------------------------------------------------------*/