I’m trying to use the rgb_color attribute from a LIFX bulb in a template to set the icon_color, but it’s not working (the icon doesn’t change to the proper color).
If I enter icon_color: blue, the icon changes to blue
If I enter icon_color: rgb(0, 0, 255), the icon stays at the default (white) color
What’s the proper way to use rgb attribute values in a template?
Yes, thank you. Before I go Google-fu’ing my way to figure that out, I’d like to know whether rgb is supposed to work without converting or if there’s just something I’m missing in the syntax.
They both work great. I’m still left with my original question, but after three people chimed in with alternative approaches, I’ll assume the answer is that setting color using rgb values is not natively supported.
@WallyR I didn’t quite pick up on what you were teaching me with respect to using rgb color.