Lights off


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

Here you can download the lights off demo. Right click on the download link below and download / save the file as a zanscript file, i.e. in the same format: lights_off.zs .

Script download: lights_off.zs