#Flashing Markdown Card
1 messages · Page 1 of 1 (latest)
Bumping
I don't know why it's flickering but that's not any kind of a valid template.
It would just be a syntax error.
What are you trying to display?
I just want to display the state of an entity in the markdown, the end goal is to have the markdown show what media Radarr and Sonarr is currently downloading
content: >
{% for attr, value in state_attr('sensor.sonarr_queue', '') | dictsort %}
{% if attr not in ['friendly_name', 'unit_of_measurement'] %}
**{{ attr }}**: {{ value }}
{% endif %}
{% endfor %}```
and even then, it just flashes
Mainly, I want to display all the attributes of an entity.
state_attr('sensor.sonarr_queue', '') will just return null
if you want to iterate over all attributes - you can get the dict directly with states['sensor.sonarr_queue'].attributes
Ok! That works in displaying them! The last issue now is for some reason, it is changing the formatting after the first entry. What would be the fix to this?