Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lovelace_gen
- # Alle elementer i entities_of_rows indeholder én række.
- # Rækkerne skal stables oven på hinanden med i ét kort med
- # vertical-stack-in-card.
- # Alle element i én række skal placeres ved siden af hinanden
- # i en horizontal-stack.
- # Dette gentages for at lave en slider
- type: custom:vertical-stack-in-card
- cards:
- {% for entity_row in row_of_entities %}
- - type: horizontal-stack
- cards:
- {% for entity in entity_row %}
- {% if entity | length %}
- - type: entity-button
- entity: {{ entity }}
- {% else %}
- - type: custom:gap-card
- {% endif %}
- {% endfor %}
- - type: horizontal-stack
- cards:
- {% for entity in entity_row %}
- {% if entity | length %}
- - type: custom:slider-entity-row
- entity: {{ entity }}
- full_row: true
- hide_state: true
- {% else %}
- - type: custom:gap-card
- {% endif %}
- {% endfor %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement