User Guide

71
Standard NetLinx API (SNAPI) R 1.8.0
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
setLightOn(index,state) 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, presets, and scenes.
Listener
Name: Light Listener
Interface: ILightComponentListener
ILightComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processLightEvent LIGHTSTATE-1,<state> Response to ?LIGHTSTATE-1
processLightEvent LIGHTSTATE-10,<state> Response to ?LIGHTSTATE-10
processLightEvent LIGHTSTATE-11,<state> Response to ?LIGHTSTATE-11
processLightEvent LIGHTSTATE-12,<state> Response to ?LIGHTSTATE-12
processLightEvent LIGHTSTATE-13,<state> Response to ?LIGHTSTATE-13
processLightEvent LIGHTSTATE-14,<state> Response to ?LIGHTSTATE-14
processLightEvent LIGHTSTATE-15,<state> Response to ?LIGHTSTATE-15
processLightEvent LIGHTSTATE-16,<state> Response to ?LIGHTSTATE-16
processLightEvent LIGHTSTATE-17,<state> Response to ?LIGHTSTATE-17
processLightEvent LIGHTSTATE-18,<state> Response to ?LIGHTSTATE-18
processLightEvent LIGHTSTATE-19,<state> Response to ?LIGHTSTATE-19
processLightEvent LIGHTSTATE-2,<state> Response to ?LIGHTSTATE-2
processLightEvent LIGHTSTATE-20,<state> Response to ?LIGHTSTATE-20
processLightEvent LIGHTSTATE-3,<state> Response to ?LIGHTSTATE-3
processLightEvent LIGHTSTATE-4,<state> Response to ?LIGHTSTATE-4
processLightEvent LIGHTSTATE-5,<state> Response to ?LIGHTSTATE-5
processLightEvent LIGHTSTATE-6,<state> Response to ?LIGHTSTATE-6
processLightEvent LIGHTSTATE-7,<state> Response to ?LIGHTSTATE-7
processLightEvent LIGHTSTATE-8,<state> Response to ?LIGHTSTATE-8
processLightEvent LIGHTSTATE-9,<state> Response to ?LIGHTSTATE-9
processLightEvent LIGHTSTATE-<index>,<state> State of a light changed for the light at index <index>, <state> is ON or OFF
processLightLevelEvent LIGHTLEVEL-<index>,<level> Level of a light changed for the light at index <index>, <level> where <level> is 0-255
processLightLevel-
RampEvent
LIGHTRAMP-<index>,<state> Light is ramping for the light at index <index>, <state> is UP, DOWN or STOP