@@ -508,6 +508,11 @@ function enelixDemoEnsureCyclicEvent(int $scriptId, string $ident, int $seconds)
|
||||
enelixDemoRequireType($id, 4);
|
||||
IPS_SetName($id, 'Alle ' . $seconds . ' Sekunden');
|
||||
IPS_SetEventCyclic($id, 0, 0, 0, 0, 1, $seconds);
|
||||
IPS_SetEventAction(
|
||||
$id,
|
||||
'{346AA8C1-30E0-1663-78EF-93EFADFAC650}',
|
||||
['SCRIPT' => 'IPS_RunScript(' . $scriptId . ');']
|
||||
);
|
||||
IPS_SetEventActive($id, true);
|
||||
return $id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user