Inbetriebnahme
Scenarios, alerts and schedulers
Existing scenarios, alerts and schedulers can be used in scripts, with the following commands:
CALL [scenario]
This will call the specified scenario. Replace [scenario] with the actual scenario you wish to call.
LEARN [scenario]
This will modify the scenario. All components in the scenario will be set to their current state in
the home automation installation.
CALL [alert] or CALL [alert] WITH [value]
This allows you to use the alert service from within scripts. If no value is specified, 0 is used.
Replace [alert] with the actual alert you wish to call.
SET [scheduler] TO [on/off]
This command allows you to enable of disable a scheduler. Replace [scheduler] with the actual
scheduler you wish to activate or deactivate. All values greater than 0 are interpreted as ON, all
values of 0 or below are interpreted as OFF. Keep in mind this will only work on schedulers that
can be manually enabled or disabled. Schedulers that are automatically enabled or disabled
based on a component cannot be enabled or disabled by a script.
Commands
EXECUTE [network command]
This allows you to use a network command from within scripts. Replace [network command]
with the actual command you wish to use.
EXECUTE [ir command]
This allows you to use an infrared command from within scripts. Replace [ir command] with the
actual command you wish to use.
EXECUTE ON [upnp device] [upnp command]
This allows you to use a command on a uPnP device from within scripts. Replace [upnp device]
with the desired uPnP device and [upnp command] with the actual command you wish to use.
EXECUTE ON [diva] [diva macro]
This allows you to use a command on a diva device from within scripts. Replace [diva] with the
desired diva server and [diva macro] with the diva macro you wish to use.
Values
When you insert a command through the script command list, values and components are
displayed in [ ] brackets. These are displayed to indicate what you should enter at the
appropriate location. When possible the editor will make a link to the right listing of components,
scripts, alerts, schedules or scenarios. The right value can then be selected.
Valid components are written for example as SCENARIO(123/name). In this example a
scenario is intended with the identifier "123". The name is displayed for readability only. You do
not have to enter the correct name, because the correct name will be automatically inserted
after the script is validated.
For many commands you will normally use a static value, for example WAIT 20 SEC. However,
in some circumstances it might by useful to use the value of a component instead. With all
commands you can replace the static value with a component.
Time values are assumed in milliseconds if no time unit is specified. Valid units are: MSEC,
SEC, MIN, HOUR and DAY.
KNX Technisches Handbuch 1373-1-8902 / 2CKA001373B8902
│60