smartlivenet

Waste Collection Dashboard Picture Elements und Custom Button card

Sep 4th, 2024
4,736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.24 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: tile
  4.     entity: sensor.nachste_leerung
  5.     state_content: state
  6.   - type: picture-elements
  7.     image: /local/müll/background.png
  8.     elements:
  9.       - type: state-badge
  10.         entity: sensor.naechster
  11.         style:
  12.           top: 20%
  13.           left: 50%
  14.           '--ha-label-badge-size': 75px
  15.           '--ha-label-badge-title-font-size': 0em
  16.       - type: image
  17.         image: /local/müll/gelbersack.webp
  18.         style:
  19.           pointer-events: none
  20.           left: 15%
  21.           top: 60%
  22.           width: 20%
  23.       - type: image
  24.         image: /local/müll/altpapier.webp
  25.         style:
  26.           pointer-events: none
  27.           left: 38%
  28.           top: 60%
  29.           width: 20%
  30.       - type: image
  31.         image: /local/müll/bioabfall.webp
  32.         style:
  33.           pointer-events: none
  34.           left: 61%
  35.           top: 60%
  36.           width: 20%
  37.       - type: image
  38.         image: /local/müll/restabfall.webp
  39.         style:
  40.           pointer-events: none
  41.           left: 84%
  42.           top: 60%
  43.           width: 20%
  44.       - type: custom:button-card
  45.         name: Gelber Sack
  46.         entity: sensor.gelbersack
  47.         show_name: true
  48.         show_icon: false
  49.         show_state: true
  50.         style:
  51.           top: 90%
  52.           left: 15%
  53.           width: 25%
  54.         styles:
  55.           name:
  56.             - font-size: 1em
  57.             - font-family: arial
  58.             - font-weight: bold
  59.           state:
  60.             - font-size: 1em
  61.             - font-family: arial
  62.           card:
  63.             - background-color: transparent
  64.             - border: none
  65.       - type: custom:button-card
  66.         entity: sensor.altpapier
  67.         name: Altpapier
  68.         show_name: true
  69.         show_icon: false
  70.         show_state: true
  71.         style:
  72.           top: 90%
  73.           left: 38%
  74.           width: 25%
  75.         styles:
  76.           name:
  77.             - font-size: 1em
  78.             - font-family: arial
  79.             - font-weight: bold
  80.           state:
  81.             - font-size: 1em
  82.             - font-family: arial
  83.           card:
  84.             - background-color: transparent
  85.             - border: none
  86.       - type: custom:button-card
  87.         name: Bioabfall
  88.         entity: sensor.bioabfall
  89.         show_name: true
  90.         show_icon: false
  91.         show_state: true
  92.         style:
  93.           top: 90%
  94.           left: 61%
  95.           width: 25%
  96.         styles:
  97.           name:
  98.             - font-size: 1em
  99.             - font-family: arial
  100.             - font-weight: bold
  101.           state:
  102.             - font-size: 1em
  103.             - font-family: arial
  104.           card:
  105.             - background-color: transparent
  106.             - border: none
  107.       - type: custom:button-card
  108.         name: Restmüll
  109.         entity: sensor.restmuell
  110.         show_name: true
  111.         show_icon: false
  112.         show_state: true
  113.         style:
  114.           top: 90%
  115.           left: 84%
  116.           width: 25%
  117.         styles:
  118.           name:
  119.             - font-size: 1em
  120.             - font-family: arial
  121.             - font-weight: bold
  122.           state:
  123.             - font-size: 1em
  124.             - font-family: arial
  125.           card:
  126.             - background-color: transparent
  127.             - border: none
  128.  
Advertisement
Add Comment
Please, Sign In to add comment