i am currently struggling to get a simple condition in my automation working.
I currently want to achieve to get my lights from one color to another and switch between them. So for now I want to go from Red to Green to Blue (very basic)
Now i tried different approaches but lets make it simple and transit from Red → Green for now (which already does not work for me)
Your condition probably does not work because rgb_color actually seems to not be a list, it is a tuple. Thus you may be required to use a template condition in order to get a match.
Another possible issue is that your light does not actually have the exact rgb_color you think it has. For example, if I attempt to set one of my Philips Hue lights to [255, 0, 0] it will very briefly show that exact color in the attributes, but then for some reason it changes to [255, 43, 0]. No idea if this is because the light cannot reproduce that exact color and is algorithmically changed to what Philips/Signify deems the closest color it can do, or due to conversions to/from the light’s native XY color space.
This did the trick! Thx alot.
I pasted the code in case someone has the same issue.
Funfact: changing to 0, 0, 255 changes the value to 11, 0, 255 for some reason in my case.
But to be honest: i just added a “or” operator and just accepted it. (in case someone reviews the code)