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.
Basically you’re asking how to make this Shelly light entity’s icon appear a certain way in any standard card it’s used in. As far as I know know, that’s not possible because you can’t template a light entity’s icon (unless it’s a Template Light) and the majority of standard cards don’t support templating.
Templating an icon is supported by several custom cards (for example, Custom Button Card).
I have templated the icon in custom button card and that works great. The only thing is that it has to be repeated at every place I used. Some times I don’t use a custom button card in a certain way I look at the light entities.