Advertisement
caffeinated00

horizontal-buttons-stack

Jan 16th, 2025 (edited)
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. - type: custom:bubble-card
  2. card_type: horizontal-buttons-stack
  3. auto_order: true
  4. 1_name: null
  5. 1_icon: mdi:shield-home-outline
  6. 1_link: "#alarm"
  7. 1_entity: null
  8. 2_name: null
  9. 2_icon: mdi:home-lock
  10. 2_link: "#locks"
  11. 2_entity: null
  12. 3_name: null
  13. 3_icon: mdi:coffee-outline
  14. 3_link: "#coffee"
  15. 3_entity: null
  16. 3_pir_sensor: null
  17. hide_gradient: true
  18. styles: |
  19. .bubble-icon {
  20. --mdc-icon-size: 23px !important;
  21. }
  22. .alarm > .background-color
  23. {
  24. opacity: 1 !important;
  25. background-color: ${hass.states['alarm_control_panel.first_floor'].state === 'disarmed' ? '#CB7F8A' : '#9AA58F'} !important; /* red when disarmed, green when armed */
  26. }
  27. .coffee > .background-color
  28. {
  29. opacity: 1 !important;
  30. background-color: ${hass.states['sensor.current_water_level'].state === '10'
  31. ? '#CB7F8A'
  32. : hass.states['sensor.current_water_level'].state === '50'
  33. ? '#E5D092'
  34. : hass.states['sensor.current_water_level'].state === '100'
  35. ? '#9AA58F'
  36. : '#8E8E8E'} !important;
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement