Hi all, first post here, thanks for having me.
I am trying to set up icons on my dashboard to be dynamic, based on a sensor value.
I have a sensor called ‘sensor.melbourne_mdi_icon_0’ which currently has a value of ‘mdi:weather-sunny’
In my dashboard config, I am trying this:
- entity: sensor.melbourne_short_text_0
name: Today
icon: {{ state_attr("sensor.melbourne_mdi_icon_0")}}
but as soon as I hit save, it changes to:
- entity: sensor.melbourne_short_text_0
name: Today
icon:
'[object Object]': null
Can somebody help me with the syntax to get the icon updated?