Hi fellow Home Assistant users!
I’ve set up the season sensor a long time ago but only now noticed that it has the default eye icon:
Would it be possible to configure an icon which changes based on the state? I tried adding icon_template to both the sensor itself and customize.yaml but none of those changes seem to be picked up:
- platform: season
icon_template: >
'{% if is_state("sensor.season", "autumn") %}
mdi:leaf
{% elif is_state("sensor.season", "winter") %}
mdi:snowflake
{% elif is_state("sensor.season", "spring") %}
mdi:flower
{% elif is_state("sensor.season", "summer") %}
mdi:sunglasses
{% else %}
mdi:cloud
{% endif %}'
I could always create a new template sensor and base it off of the sensor.season’s state but that seems rather hacky.