User Guide
147
Standard NetLinx API (SNAPI) R 1.8.0
Light Functions (Cont.)
Name Component Channel Level Command Constant Notes
cycleLight(19) ILightComponent LIGHTSTATE-19,TOG-
GLE
Toggle Light Preset 19
cycleLight(2) ILightComponent LIGHTSTATE-2,TOG-
GLE
Toggle Light Preset 2
cycleLight(20) ILightComponent LIGHTSTATE-20,TOG-
GLE
Toggle Light Preset 20
cycleLight(3) ILightComponent LIGHTSTATE-3,TOG-
GLE
Toggle Light Preset 3
cycleLight(4) ILightComponent LIGHTSTATE-4,TOG-
GLE
Toggle Light Preset 4
cycleLight(5) ILightComponent LIGHTSTATE-5,TOG-
GLE
Toggle Light Preset 5
cycleLight(6) ILightComponent LIGHTSTATE-6,TOG-
GLE
Toggle Light Preset 6
cycleLight(7) ILightComponent LIGHTSTATE-7,TOG-
GLE
Toggle Light Preset 7
cycleLight(8) ILightComponent LIGHTSTATE-8,TOG-
GLE
Toggle Light Preset 8
cycleLight(9) ILightComponent LIGHTSTATE-9,TOG-
GLE
Toggle Light Preset 9
getLightComponentAddress(index) ILightComponent ?LIGHTADDR-<index> Query for the address of the light at index
<index>, responds with LIGHTADDR-
<index>,<address>
getLightComponentIndex(lightAddress) ILightComponent ?LIGHTIDX-<address> Query for the index of the light with address
<address>, responds with LIGHTADDR-
<index>,<address>
getLightLevel(index) ILightComponent ?LIGHTLEVEL-
<index>
Query for the level of a light for the light at
index <index>, responds with LIGHT-
LEVEL-<index>,<level> where <level> is 0-
255. This command is relevant for light
loads only.
isLightOn(index) ILightComponent ?LIGHTSTATE-<index> Query for the state of a light for the light at
index <index>, responds with LIGHT-
STATE-<index>,<state> where <state> is
ON or OFF. This command is relevant for
light loads, presets, and scenes.
isLightOn(1) ILightComponent ?LIGHTSTATE-1 Query status of Light Preset 1
isLightOn(10) ILightComponent ?LIGHTSTATE-10 Query status of Light Preset 10
isLightOn(11) ILightComponent ?LIGHTSTATE-11 Query status of Light Preset 11
isLightOn(12) ILightComponent ?LIGHTSTATE-12 Query status of Light Preset 12
isLightOn(13) ILightComponent ?LIGHTSTATE-13 Query status of Light Preset 13
isLightOn(14) ILightComponent ?LIGHTSTATE-14 Query status of Light Preset 14