home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Request: Add support for templates to Markdown card #103

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'd like the ability to dynamically display the contents of a sensor that contains markdown. This would allow for weather alerts to be posted to the top of my dashboard as they are issued.

      - type: entity-filter
        entities:
          - binary_sensor.display_notifications
        state_filter:
          - 'on'
        card:
          type: markdown
          content: "{{ states('sensor.notifications') }}"
        show_empty: false

In other words, I'd like my markdown card to look like this:

Tornado Warning

The National Weather Service...

==== Instead of

{{ states('sensor.notifications') }}

c727 commented 6 years ago

we don't support templates but you can create a custom card

aaronwolen commented 6 years ago

This would be such a neat feature.