SwitchΒΆ

Description

Changes the state of a switch, relay or dimmer.

Options

Name Required Multiple Values Description
DEVICE yes yes Device(s) to change
TO yes no New state

New in version 7.0.

Name Required Multiple Values Description
FOR no no
Determine how long this new state lasts
before we change back to the previous state
AFTER no no After how long do we want the new state to be set

Note

Units for FOR and AFTER

  • MILLISECOND
  • SECOND
  • MINUTE
  • HOUR
  • DAY

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'