#Flashing Markdown Card

1 messages · Page 1 of 1 (latest)

foggy wyvern
#

When I try to put any entity in a markdown card, it makes the entire card flash and glitch on the page. Is this a known bug? ```type: markdown
content: "{{light.russell_lamp}}"

foggy wyvern
#

Bumping

glass crown
#

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?

foggy wyvern
#

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

foggy wyvern
pure hemlock
#

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

foggy wyvern
pure hemlock
#

remove all the indentation - markdown treats 4 spaces as a code block

#

idk why it's not doing it to the first one