Advertisement
Guest User

Untitled

a guest
May 10th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. - type: custom:mushroom-cover-card
  2. entity: cover.aqara_curtain_driver_e1_2
  3. show_position_control: true
  4. show_buttons_control: true
  5. fill_container: false
  6. show_tilt_position_control: false
  7. name: Curtain Living Room
  8. card_mod:
  9. style: |
  10. ha-card {
  11. {% if states['cover.aqara_curtain_driver_e1_2'].state == 'open' %}
  12. background-color: **var(--blue);**
  13. }
  14. :host {
  15. --primary-text-color: black;
  16. }
  17. {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'closed' %}
  18. background-color: var(--red);
  19. }
  20. :host {
  21. --primary-text-color: black;
  22. }
  23. {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'opening' %}
  24. background-color: var(--yellow);
  25. }
  26. :host {
  27. --primary-text-color: black;
  28. }
  29. {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'closing' %}
  30. background-color: var(--orange);
  31. {% endif %}
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement