This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Hue ledstrip with RGB and Tunable white
#11
Calculate the reverse color temp like this:
Code:
colortemp = math.floor(1000000 / item.state.ct)

Keep in mind that there might be a difference between set and status values due to precision loss during when converting between Mireks and Kelvins.
Reply


Messages In This Thread
RE: Hue ledstrip with RGB and Tunable white - by admin - 20.03.2019, 08:04

Forum Jump: