Skip to content

Possible to template "expanded" state? #212

@jabronimus

Description

@jabronimus

This is a great card, so thank you for making this!

The feature I would like is the ability to "template" the "expanded" state. As an example, instead of expanded: true or expanded: false, I would like to be able to do something like the following:

expanded: |
  {% if states('input_boolean.washing_machine_running') == 'on' %}
    true
  {% else %}
    false
  {% endif %}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions