Toggles the current state of the unit, if it's off it turns on and if it's on it turns off.
toggle “electric door latch”
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)
--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
The command will do nothing if the unit is Blocked.