Good evening to the community.
I have been trying to get the markdown card working most of the day but after trying adjusting everything I can think of and searching all through the forum posts it seems nothing will give me the clues I need to get this working.
Initially I tried to setup my own arrangement but when that kept failing I just tried to setup exactly as per the example (except for substituting my entities):
type: entity-filter
entities:
- light.tank
- light.patio
- light.side1
card:
type: markdown
content: |
The lights that are on are:
{% for l in config.entities %}
- {{ l.entity }}
{%- endfor %}
And the door is {% if is_state('binary_sensor.door', 'on' %} open {% else %} closed {% endif %}.
This returns errors or simply the content as a string IE:
The lights that are on are:
{% for l in config.entities %}
- {{ l.entity }}
{%- endfor %}
And the door is {% if is_state('binary_sensor.door', 'on' %} open {% else %} closed {% endif %}.
depending on how I adjust the config file.
Initially I was trying to add this as a new card in an existing view but that was so problematic I tried setting up a new view but that was equally problematic.
It seems to me it’s possibly a syntax problem so if I was adding it to this view as a new card:
- title: Solids
cards:
- type: glance
title: Backwash Tanks
entities:
- entity: sensor.backwash_settling_level_storage
name: Settling
- entity: sensor.backwash_settled_level_storage
name: Settled
- entity: binary_sensor.backwash_tank_hi_lvl
name: Settled HI LVL
- entity: binary_sensor.backwash_tank_lo_lvl
name: Settled LO LVL
How would it need to be added with the correct syntax?
I would like to add this as a first test. (Is the entity filter required though?):
- type: markdown
title: Batch System
content: |
Batch Auto/Pause Status is {% if is_state('binary_sensor.batch_auto_pause_status', 'on' %} ON {% else %} OFF {% endif %}.
That returns a new Card with no errors but…
The template variable is printed as a string it seems?
Cheers in advance for any help!