Advertisement
-Miura-

config template for button-card state

Jul 30th, 2024 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.64 KB | None | 0 0
  1. type: custom:config-template-card
  2. entities:
  3.  - sensor.twente_milieu_ophaaldatum_organisch_afval
  4.   - sensor.date
  5. card:
  6.   type: custom:button-card
  7.   entity: sensor.twente_milieu_ophaaldatum_organisch_afval
  8.   icon: mdi:delete-empty
  9.   color_type: card
  10.   color: auto
  11.   size: 40%
  12.   name: Tuinafval
  13.   styles:
  14.     card:
  15.       - color_type: name
  16.       - color: green
  17.       - height: 60px
  18.       - width: 100px
  19.       - font-size: 10px
  20.   state:
  21.     - value: >-
  22.         ${ states['sensor.date'].state }
  23.       operator: '=='
  24.       color: red
  25.       icon: mdi:alert
  26.       styles:
  27.         card:
  28.           - animation: blink 2s ease infinite
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement