Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:stack-in-card
- cards:
- - type: custom:layout-card
- layout_type: masonry
- layout: {}
- cards:
- - square: false
- columns: 3
- type: grid
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-chips-card
- chips:
- - type: conditional
- conditions:
- - entity: person.robert
- state: home
- chip:
- type: entity
- entity: person.robert
- content_info: nam
- use_entity_picture: true
- card_mod:
- style: |
- ha-card {
- --chip-background: rgba(var(--rgb-state-person-home), 0.4);
- margin-top: 5px;
- margin-bottom: -20px;
- }
- - type: conditional
- conditions:
- - entity: person.froukje
- state: home
- chip:
- type: entity
- entity: person.froukje
- content_info: none
- use_entity_picture: true
- card_mod:
- style: |
- ha-card {
- --chip-background: rgba(var(--rgb-state-person-home), 0.4);
- margin-top: 5px;
- margin-bottom: -20px;
- }
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-chips-card
- chips:
- - type: conditional
- conditions:
- - entity: person.robert
- state_not: home
- chip:
- type: entity
- entity: person.robert
- content_info: none
- use_entity_picture: true
- card_mod:
- style: |
- ha-card {
- {% if is_state('person.robert', 'not_home') %}
- --chip-background: rgba(var(--rgb-state-person-not-home), 0.4);
- {% elif is_state('person.robert', 'unknown') %}
- --chip-background: rgba(var(--rgb-state-person-unknown), 0.4);
- {% else %}
- --chip-background: rgba(var(--rgb-state-person-zone), 0.4);
- {% endif %}
- margin-top: 5px;
- margin-bottom: -20px;
- }
- - type: conditional
- conditions:
- - entity: person.froukje
- state_not: home
- chip:
- type: entity
- entity: person.froukje
- content_info: none
- use_entity_picture: true
- card_mod:
- style: |
- ha-card {
- {% if is_state('person.froukje', 'not_home') %}
- --chip-background: rgba(var(--rgb-state-person-not-home), 0.4);
- {% elif is_state('person.froukje', 'unknown') %}
- --chip-background: rgba(var(--rgb-state-person-unknown), 0.4);
- {% else %}
- --chip-background: rgba(var(--rgb-state-person-zone), 0.4);
- {% endif %}
- margin-top: 5px;
- margin-bottom: -20px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement