Class: Lightstate

huepi.Lightstate

new Lightstate()

huepi.Lightstate Object. Internal object to recieve all settings that are about to be send to the Bridge as a string.
Source:

Methods

AlertLSelect()

Source:

AlertNone()

Source:

AlertSelect()

Source:

EffectColorloop()

Source:

EffectNone()

Source:

Get() → {string}

Source:
Returns:
Stringified version of the content of LightState ready to be sent to the Bridge.
Type
string

Off()

Source:

On()

Source:

SetBrightness(Brightness)

Parameters:
Name Type Description
Brightness float Range [0..255]
Source:

SetColortemperature(Colortemperature)

Parameters:
Name Type Description
Colortemperature number Range [2200..6500] for the 2012 lights
Source:

SetCT(Ct)

Parameters:
Name Type Description
Ct number Micro Reciprocal Degree of Colortemperature (Ct = 10^6 / Colortemperature)
Source:

SetHue(Hue)

Parameters:
Name Type Description
Hue number Range [0..65535]
Source:

SetHueAngSatBri(Ang, Sat, Bri)

Parameters:
Name Type Description
Ang float Range [0..360]
Sat float Range [0..1]
Bri float Range [0..1]
Source:

SetRGB(Red, Green, Blue)

Parameters:
Name Type Description
Red number Range [0..1]
Green number Range [0..1]
Blue number Range [0..1]
Source:

SetSaturation(Saturation)

Parameters:
Name Type Description
Saturation float Range [0..255]
Source:

SetTransitiontime(Transitiontime)

Parameters:
Name Type Description
Transitiontime number Optional Transitiontime in multiple of 100ms, defaults to 4 (on bridge, meaning 400 ms)
Source:

SetXY(X, Y)

Parameters:
Name Type Description
X float
Y float
Source: