Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - type: custom:mushroom-cover-card
- entity: cover.aqara_curtain_driver_e1_2
- show_position_control: true
- show_buttons_control: true
- fill_container: false
- show_tilt_position_control: false
- name: Curtain Living Room
- card_mod:
- style: |
- ha-card {
- {% if states['cover.aqara_curtain_driver_e1_2'].state == 'open' %}
- background-color: **var(--blue);**
- }
- :host {
- --primary-text-color: black;
- }
- {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'closed' %}
- background-color: var(--red);
- }
- :host {
- --primary-text-color: black;
- }
- {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'opening' %}
- background-color: var(--yellow);
- }
- :host {
- --primary-text-color: black;
- }
- {% elif states['cover.aqara_curtain_driver_e1_2'].state == 'closing' %}
- background-color: var(--orange);
- {% endif %}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement