Markdown card - cant display value in a table

I have been fiddling trying to display a table in a markdown card.

Finally got a table displayed if I use constants in the content

type: markdown
content: >-
  # test markdown table
  
  | switch             | name            | Watts | Volts |
  |--------------------|-----------------|-------|-------|
  | switch.pc191ha_105 | Bedroom heater  | 105   |   105 |
  | switch.pc191ha_106 | Bedroom charger | 6     |  106  |
  | switch.pc191ha_107 | null            | 107   | { number.pc191ha_107_voltage }}
  
   _well, thats it_
title: markdown test2

but if I add a second “{” to display the value of number.pc191ha_107_voltage, the whole content disappears. Similarly if I add “{%” anywhere.

I have seen so many forum posts that use scripting to display content … so I must be doing something wrong, or have something mis-configured . I am using Firefox under Linux, but get same results with Chrome.

Have you tried using the code editor instead of the visual editor?

Your template is not valid. You need to do this to retrieve the state:

{{ states('number.pc191ha_107_voltage') }}
1 Like

I have used both … and they both muck up the formatting. Seems to be purely a matter of luck.
Back in my day something this temperamental would never have made it into production

Not yet understanding what you are doing has nothing to do with the quality of the software. Keep at it you’ll pick it up eventually.

1 Like