caffeinated00

Patio card

Apr 18th, 2025
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. type: custom:bubble-card
  2. card_type: button
  3. modules:
  4. - default
  5. entity: binary_sensor.patio_door_bar
  6. show_state: true
  7. show_last_changed: false
  8. scrolling_effect: false
  9. name: Patio
  10. button_action:
  11. tap_action:
  12. action: more-info
  13. styles: |-
  14. .bubble-button-background {
  15. background-color: ${state === 'on'
  16. ? '#c89cae'
  17. : state === 'unavailable'
  18. ? '#8E8E8E'
  19. : '# 90AB9F'} !important;
  20. }
  21. .bubble-icon {
  22. color: ${state === 'on'
  23. ? '#c89cae'
  24. : state === 'unavailable'
  25. ? '#8E8E8E'
  26. : '# 90AB9F'} !important;
  27. }
  28. grid_options:
  29. columns: 6
  30. rows: auto
  31. visibility:
  32. - condition: state
  33. entity: binary_sensor.patio_door_bar
  34. state: "on"
  35.  
Advertisement
Add Comment
Please, Sign In to add comment