User Tools

Site Tools


lgscript:lightsrv

LightSrv

Set

Set the current mode of a light, and the minimum and maximum brightness values.

Parameter integer object
Parameter string or integer mode
Parameter number minimum
Parameter number maximum

SetMode

Change the current mode of a light.

Parameter integer object
Parameter string or integer mode

Activate

Make a light active. Does not change the mode.

Parameter integer object

Deactivate

Make a light inactive. Does not change the mode.

Parameter integer object

Subscribe

Begin listening for light mode change messages.

Parameter integer object

Unsubscribe

Stop listening to light mode change messages.

Parameter integer object

GetMode

Get the current light mode.

Returns integer or nil mode
Parameter integer object

GetModeName

Return a string that describes a light mode.

Returns string or nil description
Parameter integer mode
lgscript/lightsrv.txt · Last modified: 2009/08/25 22:05 (external edit)