Advertisement
fablav

button_card_templates_vacuum_card

Apr 26th, 2024
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.50 KB | Software | 0 0
  1. button_card_templates:
  2.   sensor_vacuum:
  3.     show_label: true
  4.     show_state: false
  5.     styles:
  6.       grid:
  7.         - grid-template-columns: 24px 1fr
  8.         - grid-template-rows: min-content min-content
  9.         - grid-template-areas: '"l l" "i n"'
  10.       img_cell:
  11.         - justify-self: null
  12.         - width: 22px
  13.         - height: 22px
  14.         - margin-left: '-3px'
  15.       name:
  16.         - justify-self: start
  17.         - font-size: 15px
  18.         - font-weight: 500
  19.         - padding: 0 3px
  20.       label:
  21.         - justify-self: start
  22.         - font-size: 12px
  23.         - opacity: '0.7'
  24.         - padding: 4px
  25.       card:
  26.         - padding: 13px
  27.       icon:
  28.         - width: 22px
  29.         - color: var(--contrast15)
  30.   vacuum_button:
  31.     variables:
  32.       background_on: '#FFC700'
  33.       background_off: '#F7EEDD'
  34.       name: Cucina
  35.       label: label
  36.     label: '[[[ return variables.label ]]]'
  37.     name: '[[[ return variables.name ]]]'
  38.     show_icon: true
  39.     show_label: true
  40.     color_type: card
  41.     tap_action:
  42.       action: toggle
  43.     state:
  44.       - value: 'off'
  45.         color: '[[[ return variables.background_off ]]]'
  46.         styles:
  47.           icon:
  48.             - color: black
  49.           name:
  50.             - color: black
  51.           label:
  52.             - color: black
  53.           card:
  54.             - background: '[[[ return variables.background_off ]]]'
  55.       - value: 'on'
  56.         color: '[[[ return variables.background_on ]]]'
  57.         styles:
  58.           icon:
  59.             - color: black
  60.           name:
  61.             - color: black
  62.           label:
  63.             - color: black
  64.           card:
  65.             - background: '[[[ return variables.background_on ]]]'
  66.     styles:
  67.       grid:
  68.         - grid-template-columns: 1fr 34px
  69.         - grid-template-rows: min-content min-content
  70.         - grid-template-areas: '"i i" "n n" "l l"'
  71.       icon:
  72.         - width: 20px
  73.       img_cell:
  74.         - justify-self: end
  75.         - width: 20px
  76.         - height: 20px
  77.         - margin-right: 7px
  78.       name:
  79.         - justify-self: start
  80.         - font-size: 15px
  81.         - line-height: 20px
  82.         - font-weight: 500
  83.         - padding: 5px
  84.         - margin-top: '-26px'
  85.       label:
  86.         - justify-self: start
  87.         - font-size: 12px
  88.         - font-weight: 400
  89.         - padding: 5px
  90.         - margin-top: '-5px'
  91.       card:
  92.         - height: 50px
  93.         - padding: 13px
  94.         - border-radius: 20px
  95.         - '--mdc-ripple-color': yellow
  96.         - '--mdc-ripple-press-opacity': 0.5
Tags: ha vacuum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement