Hi,
I have Shelly 1 that controls a light. I have used the Shelly integration to configure it. I want to configure different icons for off and on state. Can I add it in configuration.yaml?
I tried the below snippet and neither icon_template nor color_template are having any effect. The friendly_name and icon works though.
homeassistant:
customize:
light.study:
friendly_name: test_light
# icon: mdi:rss-box
templates:
icon_color: >
if (state.attributes.brightness < 150) return 'blue';
return 'red';
icon_template: >
{% if states('light.study') == 'on' %}
'mdi:rss';
{% else %}
'mdi:rss-off';
Regards,
AK
3 posts - 2 participants