Hello to all,
I’m new to HA, and I’m still using a Hubitat C7 hub for my smart home. I’m actually evaluation my possibilities to migrate all my rules to HA. While Hubitat has some problems for Europeans like a missing support for TRV devices, Rule machine is very powerful (oldish interface). HA recognizes so many devices and opens so many possibilities BUT has some limitations I wasn’t prepared for.
One of these is the colour definition in only RGB. I have rules that change colours dynamically and this is quite easy with the HSV or HSL model where you just assign the value as a degree on the colour wheel if you don’t want to change the lightness, so values from 0 to 360 (actually 0-100 on Habitat due to an implementation in %). Doing this with RGB values seems extremely complicated. Is there a way to use HSL or HSV or any other methods that allow easely to cycle through colors without having to handle RGB ?
Hue is a value from 0 to 360 (degrees on the wheel). That makes it easy to say the next colour is the actual + 1, or 10 … if value > 360 than value = 0 and you can cycle through all colours. In my example the 2nd lamp has the opposite colour of the first (example 60 and (60+180) = 240. Both rotate by the same value.
Thank you for your guidance. I will check out the possibilities and try to build my automation for dynamic lights. If my understanding is right, in hs_color the hs stands for Hue and Saturation, so basically it is a HSL mode without Luminance (Brightness) that you set up apart.