LIFX lights
The LIFX lights have 2 modes, colors and whites. I’ve been using the skynet-lifx plugin for gateblu to control the lights I have. This is a breakdown of the different ways you can control the lifx lights using nodeblu’s msg.payload object and gateblu.
- Hue
- represents color of light
- only needed when in color mode
- range from 0 - 65,000
- 60000 = Pink
- 50000 = Purple
- 40000 = Blue
- 30000 = Teal
- 20000 = Green
- 10000 = Yellow
- 5000 = Orange
- 1000 = Red
- Sat
- represents saturation of light in 2 modes
- 0xFFFF = color mode
- 0x0000 = white mode
- White
- represents color temperature in Kelvin
- range from 0 - 10,000
- only needed when in white mode
- LIFX blog on color temperatures
- Lum
- represents luminosity of lights
- 0x0000 = no light
- 0x9000 = brghtest setting
- Name
- optional value if name is set in LIFX app
- Timing
- time in milliseconds to fade from current to next state
- On
- boolean value
- if present in setState object, no other values are parsed.
To connect to LIFX using gateblu and nodeblu, set the subdevice method of the msg object to ‘lx’ (or whatever you named the subdevice for the skynet-lifx plugin).
Then change the different values in the setState object of the msg payload to control your LIFX light.
###Turn Light On
###Turn Light Off
###Color Mode
###White Mode