homeassistant/archive/lovelace/button-card.yaml.j2

9 lines
144 B
Django/Jinja

# lovelace_gen
{% if entity.startswith("light") %}
type: light
{% else %}
type: entity-button
{% endif %}
entity: {{ entity }}
name: {{ name }}