Device input SWITCH
Define a stateful device switch
Last updated
Define a stateful device switch
Last updated
0,INPUT,<Index>,<TAG>,SWITCH[,<Inherit>[,<OPTIONS>]]
The following inherits are available for switches to control the behaviour and available events:
SPAD_SWITCH | an ON/OFF switch | |
If no inherit is present, the switch will not provide any standard events. The events have to be defined separately in the options
For customizing the switch UI see (CUSTOM UI).
Default images used:
IMG_ON
= svg/switch_1.svg
IMG_OFF
= svg/switch_0.svg
For the SPAD.neXt standard UI of a switch the following options are supported:
ROTATE=<angle> | rotate switch-ui | ROTATE=90 (create left to right switch) ROTATE=180 (create switch with OFF-Position is up instead of down) |
8,<index>,<statevalue>;
statevalue = 0 switched to OFF
statevalue = 1 switched to ON