Advertisement
-Miura-

Custom cover card

Dec 16th, 2024 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.62 KB | None | 0 0
  1. type: custom:stack-in-card
  2. mode: horizontal
  3. cards:
  4.   - type: custom:mushroom-template-card
  5.     entity: cover.zonwering_kantoor
  6.     primary: Poort aan straat
  7.     secondary: "{{ states(entity).capitalize() }}"
  8.     icon: |-
  9.       {% if is_state(entity, 'close') %}
  10.         mdi:gate-open
  11.       {% else %}
  12.         mdi:gate
  13.       {% endif %}
  14.     tap_action:
  15.       action: none
  16.     hold_action:
  17.       action: none
  18.     double_tap_action:
  19.       action: none
  20.   - type: custom:button-card
  21.     icon: mdi:arrow-collapse-horizontal
  22.     show_name: false
  23.     show_label: false
  24.     size: 50%
  25.     styles:
  26.       card:
  27.         - height: 56px
  28.         - width: 36px
  29.         - "--keep-background": "true"
  30.       img_cell:
  31.         - height: 36px
  32.         - width: 36px
  33.         - background: var(--primary-background-color)
  34.         - border-radius: 12px
  35.   - type: custom:button-card
  36.     icon: mdi:stop
  37.     show_name: false
  38.     show_label: false
  39.     size: 50%
  40.     styles:
  41.       card:
  42.         - height: 56px
  43.         - width: 36px
  44.         - "--keep-background": "true"
  45.       img_cell:
  46.         - height: 36px
  47.         - width: 36px
  48.         - background: var(--primary-background-color)
  49.         - border-radius: 12px
  50.   - type: custom:button-card
  51.     icon: mdi:arrow-expand-horizontal
  52.     show_name: false
  53.     show_label: false
  54.     size: 50%
  55.     styles:
  56.       card:
  57.         - height: 56px
  58.         - width: 36px
  59.         - margin-right: 12px
  60.         - "--keep-background": "true"
  61.       img_cell:
  62.         - height: 36px
  63.         - width: 36px
  64.         - background: var(--primary-background-color)
  65.         - border-radius: 12px
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement