User Guide

Standard NetLinx API (SNAPI) R 1.8.0
146
Light Functions (Cont.)
Name Component Channel Level Command Constant Notes
processButtonStateEvent(RELEASE) IKeypadComponentListener <btn> Input Function Channel: Button state is
Pushed when BUTTON_EVENT-PUSH is
received, where <btn> is the button/chan-
nel number
processButtonStateEvent(ButtonState) IKeypadComponentListener KEYPADBTN-
<btn>,<state>
Button State changed. <btn> is button
number and <state> is CLICK or DOUBLE-
CLICK
processButtonStatusEvent(ON) IKeypadComponentListener <btn> Feedback Channel: Button status on ON
while channel <btn> is on and channel
<btn>+100 is off, where <btn> is the button/
channel number (see chart below)
processButtonStatusEvent(BLINK) IKeypadComponentListener <btn>+1
00
Feedback Channel: Button status on
BLINK while channel <btn> is on and chan-
nel <btn>+100 is on, where <btn> is the
button/channel number (see chart below)
addLightComponent(index,lightAddress) ILightComponent LIGHTADD-
<index>,<address>
Add a light at a given index, where <index>
is 1 through x and <address> is a light
address and x is the maximum supported
light index (see specific module documen-
tation)
cycleLight(index) ILightComponent LIGHTSTATE-
<index>,TOGGLE
Cycle the state of a light for the light at
index <index>. This command is relevant
for light loads and scenes.
cycleLight(1) ILightComponent LIGHTSTATE-1,TOG-
GLE
Toggle Light Preset 1
cycleLight(10) ILightComponent LIGHTSTATE-10,TOG-
GLE
Toggle Light Preset 10
cycleLight(11) ILightComponent LIGHTSTATE-11,TOG-
GLE
Toggle Light Preset 11
cycleLight(12) ILightComponent LIGHTSTATE-12,TOG-
GLE
Toggle Light Preset 12
cycleLight(13) ILightComponent LIGHTSTATE-13,TOG-
GLE
Toggle Light Preset 13
cycleLight(14) ILightComponent LIGHTSTATE-14,TOG-
GLE
Toggle Light Preset 14
cycleLight(15) ILightComponent LIGHTSTATE-15,TOG-
GLE
Toggle Light Preset 15
cycleLight(16) ILightComponent LIGHTSTATE-16,TOG-
GLE
Toggle Light Preset 16
cycleLight(17) ILightComponent LIGHTSTATE-17,TOG-
GLE
Toggle Light Preset 17
cycleLight(18) ILightComponent LIGHTSTATE-18,TOG-
GLE
Toggle Light Preset 18