Toggle

Toggles the current state of the unit, if it's off it turns on and if it's on it turns off.

Usage:

toggle “electric door latch”

Optional Parameters:

in (integer, creates a scheduled event to perform the toggle this many seconds in the future.)
for (integer, creates a scheduled event to toggle the unit again in this many seconds.)
with no script (performs the toggle but wont run the ON script) with no transmit (updates the database and runs the script but doesn't actually transmit the command)

Examples:

--activate the door latch for 10 seconds
toggle "electric door latch" for 10
--Flash a light 3 times and return to previous state
repeat 6 times
  toggle "Overhead"
end repeat

Notes:

The command will do nothing if the unit is Blocked.

dictionary/unitcontrol/toggle.txt · Last modified: 2009/09/27 12:47 by James Sentman
CC Attribution-No Derivative Works 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0