Hallo Paresy,
bekomme folgende Fehlermeldung obwohl ID im Rahmen liegt.
Warning: Parameter for VariableID is not inside of the specified bounds (10000…59999) in D:\IP-Symcon\scripts\14356.ips.php on line 9
<?php
// https://www.symcon.de/forum/threads/31264-Connect-Modul-automatisiert-starten-und-stoppen
$id_connect = 36908 /*[Connect]*/;
if( $_IPS['SENDER'] == 'WebFront' OR $_IPS['SENDER'] == 'Execute' )
{
SetValue($_IPS['VARIABLE'], $_IPS['VALUE']);
}
if( $_IPS['VALUE'] == true)
{
IPS_SetProperty($id_connect, "Active", true); // Ein
IPS_ApplyChanges($id_connect);
}
if( $_IPS['VALUE'] == false)
{
IPS_SetProperty($id_connect, "Active", false); // Aus
IPS_ApplyChanges($id_connect);
}
?>