Description
Changes the state of a switch, relay or dimmer.
Options
Name | Required | Multiple Values | Description |
DEVICE | Device(s) to change | ||
TO | New state |
New in version 7.0.
Name | Required | Multiple Values | Description |
FOR | Determine how long this new state lasts
before we change back to the previous state
|
||
AFTER | After how long do we want the new state to be set |
Note
Units for FOR
and AFTER
Examples
IF 1 == 1 THEN switch DEVICE light TO on
IF 1 == 1 THEN switch DEVICE mainlight AND bookshelve AND hall TO on
New in version 7.0.
IF 1 == 1 THEN switch DEVICE light TO on FOR 10 MINUTE
IF 1 == 1 THEN switch DEVICE light TO on AFTER 30 MILLISECOND
IF 1 == 1 THEN switch DEVICE light TO off FOR 10 SECOND AFTER 30 MINUTE
Changed in version 8.1.0.
IF 1 == 1 THEN switch DEVICE light TO on FOR '10 MINUTE'
IF 1 == 1 THEN switch DEVICE light TO on AFTER '30 MILLISECOND'
IF 1 == 1 THEN switch DEVICE light TO off FOR '10 SECOND' AFTER '30 MINUTE'