Advertisement
caffeinated00

garage-with-icon-color-changes

Jan 16th, 2025 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. type: custom:bubble-card
  2. card_type: cover
  3. entity: cover.smart_garage_door
  4. show_state: true
  5. show_last_changed: true
  6. show_attribute: false
  7. scrolling_effect: false
  8. name: Garage
  9. icon_open: mdi:garage-open
  10. icon_close: mdi:garage
  11. card_mod:
  12. style: |
  13. ha-card
  14. /* Adjust icon background */
  15. .bubble-cover-card-container {
  16. --bubble-icon-background-color:
  17. {% if is_state('cover.smart_garage_door', 'opened') %}
  18. #E0816E !important;
  19. {% elif is_state('cover.smart_garage_door', 'closed') %}
  20. #8E9876 !important;
  21. {% else %}
  22. #8E8E8E !important; /* grey if unavailable */
  23. {% endif %};
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement