User Guide
Standard NetLinx API (SNAPI) R 1.8.0
148
Light Functions (Cont.)
Name Component Channel Level Command Constant Notes
isLightOn(15) ILightComponent ?LIGHTSTATE-15 Query status of Light Preset 15
isLightOn(16) ILightComponent ?LIGHTSTATE-16 Query status of Light Preset 16
isLightOn(17) ILightComponent ?LIGHTSTATE-17 Query status of Light Preset 17
isLightOn(18) ILightComponent ?LIGHTSTATE-18 Query status of Light Preset 18
isLightOn(19) ILightComponent ?LIGHTSTATE-19 Query status of Light Preset 19
isLightOn(2) ILightComponent ?LIGHTSTATE-2 Query status of Light Preset 2
isLightOn(20) ILightComponent ?LIGHTSTATE-20 Query status of Light Preset 20
isLightOn(3) ILightComponent ?LIGHTSTATE-3 Query status of Light Preset 3
isLightOn(4) ILightComponent ?LIGHTSTATE-4 Query status of Light Preset 4
isLightOn(5) ILightComponent ?LIGHTSTATE-5 Query status of Light Preset 5
isLightOn(6) ILightComponent ?LIGHTSTATE-6 Query status of Light Preset 6
isLightOn(7) ILightComponent ?LIGHTSTATE-7 Query status of Light Preset 7
isLightOn(8) ILightComponent ?LIGHTSTATE-8 Query status of Light Preset 8
isLightOn(9) ILightComponent ?LIGHTSTATE-9 Query status of Light Preset 9
removeLightComponent(lightAddress) ILightComponent LIGHTREMOVEADDR-
<address>
Remove the light with address <address>,
where <address> is a light address
removeLightComponent(index) ILightComponent LIGHTREMOVEIDX-
<index>
Remove the light at index <index>, where
<index> is 1 through x and x is the maxi-
mum supported light index (see specific
module documentation)
setLightLevel(index,level) ILightComponent LIGHTLEVEL-
<index>,<level>
Set the level of a light for the light at index
<index>, <level> where <level> is 0-255.
This command is relevant for light loads
only.
setLightLevel(index,level,seconds) ILightComponent LIGHTLEVEL-
<index>,<level>,<time>
Set the level of a light for the light at index
<index> in <time>, <level> where <level> is
0-255 and <time> is in seconds. This com-
mand is relevant for light loads only.
setLightOn(index) ILightComponent LIGHTSTATE-<index> Set the light ON at index <index>. This
command is relevant for light loads, pre-
sets, and scenes.
setLightOn(index,state) ILightComponent LIGHTSTATE-
<index>,<state>
Set the state of a light for the light at index
<index>, where <state> is ON or OFF. This
command is relevant for light loads, pre-
sets, and scenes.
processLightEvent(int,boolean) ILightComponentListener LIGHTSTATE-
<index>,<state>
State of a light changed for the light at
index <index>, <state> is ON or OFF
processLightEvent(1, boolean) ILightComponentListener LIGHTSTATE-1,<state> Response to ?LIGHTSTATE-1
processLightEvent(10, boolean) ILightComponentListener LIGHTSTATE-
10,<state>
Response to ?LIGHTSTATE-10