I have a Hue light, that has been set to a colour, I would like to use that colour at times using the Light: Turn On service but I seen to need the RGB value. Is there a way of finding the RGB value that the light is currently using?
Only if the light is on. Then it is available in the rgb_color
attribute.
Thanks, And if the light is on can I view the rgb_color attribute in the UI somewhere? or is it something I have to find programmatically?
Both.
Many Dashboard cards support displaying entity attributes. The entities card for example.
Or in a template:
"{{ state_attr('light.your_light', 'rgb_color') }}"
1 Like