I don’t understand why my template sensor icon is not being display if it’s outside of a group. This my sensor:
rain:
value_template: '{% if states.sensor.weather_precip_probability.state | int > 50 %}Regen{% else %}Sonne{% endif %}'
icon_template: '{% if states.sensor.weather_precip_probability.state | int > 50 %}mdi:weather-rainy{% else %}mdi:weather-sunny{% endif %}'
entity_id:
- sensor.weather_precip_probability
unit_of_measurement: Wetter
If I add the sensor to my default view the icon is not display. If I click on it the card shows the icon. If I add the sensor to a group the icon is displayed.
Bug or expected behaviour? Did I miss the option to display the icon instead of the status?
@Jer78 - But it’s working if you use the sensor in a group instead of a badge on the top of the page, so I think it’s working basically, but not as a badge.
I’m in the same situation where my dynamic icon don’t display in a badge, i have tried different combinations using custom-ui, badgelists, individual badges… Could you help me out by pasting your config for me?