Node Red - Philips HUE Ambiance
vor 12 Minuten
I'm using the node-red-contrib-loxone 0.10.11 along with the node-red-contrib-huemagic (node)
to control HUE lamps from Loxone which works great when using Philips HUE RGB bulbs
But I've recently tried to control some Philips HUE Ambiance lamps (warm,natural,cool) lamps
I've setup my output of my Loxone lighting controller as RGB and when using the warm / natural / cool colour picker in the loxone app
I get the following information in node red:
Pendant : msg.payload : string[14]
"temp(100,2700)"
100 being the brightness - 2700 being the colour temperature
However the Philips Hue Ambianc lamps requires colour temperature in a different format:
on: true
brightness: 100
brightnessLevel: 254
reachable: true
colorTemp: 454
From what I have researched the Hue lamps require the colour temperature in Mired format
https://www.reddit.com/r/tasker/comm...a_philips_hue/
All we need to know is that M = 1000000 / T where M is Mired and T is the light temperature in degrees Kelvin.
So for our 2700K equivalent ct value we get:
M = 1000000 / 2700 M = 370.37037037
Does anyone have a flow they can share that will convert the Loxone values to the Philips HUE required values ?
Thanks in advance