Card

 avatar
unknown
yaml
5 months ago
2.6 kB
227
Indexable
          - type: custom:vertical-stack-in-card
            cards:
              - type: horizontal-stack
                cards:
                  - type: custom:mushroom-template-card
                    icon: mdi:briefcase
                    primary: Arbeitszimmer
                    layout: horizontal
                    fill_container: true
                    secondary: '{{ states(''sensor.meter_plus_42f9'') }} °C'
                    tap_action:
                      action: navigate
                      navigation_path: /lovelace/kueche
                    card_mod:
                      style: |
                        ha-card {
                          border-width: 0px;
                        }
                        :host {
                            --mush-icon-size: 55px;       
                        }
                  - type: custom:mushroom-chips-card
                    alignment: end
                    card_mod:
                      style: |
                        ha-card {
                          margin-top: 10px;
                          margin-right: 10px;
                          margin-bottom: 10px;
                          width: 110%;
                          margin-left: -28px
                        }
                    chips:
                      - type: template
                        entity: cover.eg_arbeitszimmer_nina
                        tap_action:
                          action: toggle
                        hold_action:
                          action: more-info
                        icon: |-
                          {% if is_state(entity, 'open') %} 
                           mdi:window-shutter-open
                          {% elif is_state(entity, 'closed') %} 
                           mdi:window-shutter
                          {% else %}
                           mdi:alert
                          {% endif %}
                        icon_color: |-
                          {% if ((state_attr(entity, 'current_position') |
                          float(0)) == 100) and ((state_attr(entity,
                          'current_tilt_position') | float(0)) == 100)%} 
                           grey
                          {% elif ((state_attr(entity, 'current_position') |
                          float(0)) == 0) and ((state_attr(entity,
                          'current_tilt_position') | float(0)) == 0)%} 
                           green
                          {% else %}
                           orange
                          {% endif %}
Editor is loading...
Leave a Comment