Device input SWITCH

Define a stateful device switch



The following inherits are available for switches to control the behaviour and available events:


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 switch-ui

ROTATE=90 (create left to right switch) ROTATE=180 (create switch with OFF-Position is up instead of down)

Sending switch input updates


statevalue = 0 switched to OFF

statevalue = 1 switched to ON

Last updated