I know that I can change the icon of a sensor by something like this:
- platform: template
sensors:
bedroom_fan_speed:
value_template: '{{ states.fan.bedroom_fan_level.attributes.speed | capitalize }}'
icon_template: >
{% if states.fan.bedroom_fan_level.attributes.speed == "off" %}
mdi:fan
{% else %}
mdi:battery-charging
{% endif %}
But, is there any way to change the icon for an input_select based upon the chosen item? For example, I’d like for this fan icon to be highlighted when anything but ‘Off’ is chosen:
Like this:
Does anyone know if this is possible?
Also, I can’t find the highlighted fan icon at the Material Designs website.
Thanks!