Lights off demo


This demo script is very useful to have loaded as a service. If a service is stopped before it is scripted to end, and lights are left on in the unit, the lights_off service can be run to turn off all the lights quickly.

Top

Script explanation

The script below waits one second, turns all the lights off, waits another second and then is complete.

INCLUDE zsys
 
ACTION MAIN
 
 INVOKE(LIGHTSOFF,1)
 
COMPLETE
 
ACTION LIGHTSOFF
 
 WAIT(1)
 LIGHTS(ALL,OFF)
 WAIT(1)
 
COMPLETE
Top

Script Download

To download the lights_off script as a .zs file (file type Zantiks software reads), choose the Save File As option in the right-click dialogue box. Clicking on the script name hyperlink will open a read-only version of the script.

Script download:
lights_off.zs