List attributes from scene devices with state=on

That requires a pretty complex template but, luckily, the Color Multi-Tool custom macro can already handle that. Once you have it installed, you would use something like:

{% from 'color_multi_tool.jinja' import rgb2name %}
{{ rgb2name(30, state_attr('light.example','rgb_color')|list) }}
1 Like