UI minimalist room card does not color cover icon

Hello there.
I am using minimalist “theme” as front-end and I am trying to configure room card to shoe lights and covers on the left side of the card.
I would like to color the icon according to the cover status (open/close) but I cannot make it work.
I think the issue is that cover status are not the same of lights so I tried to use a template to workaround the issue but it still does not work.

can someone help ?
here the main.yaml code:

    - type: "horizontal-stack"
      cards:
      - type: 'custom:button-card'
        template:
          - card_room
          - red_no_state
        name: Cameretta
        entity: climate.termostato_p1_2 
        icon: mdi:bed-single
        tap_action:
          action: navigate
          navigation_path: '/ui-lovelace-minimalist/cameretta'
        variables:
          label_use_temperature: true
          label_use_brightness: true
          entity_1:
            icon: mdi:lightbulb
            entity_id: switch.luce_cameretta
            templates:
              - yellow_on
            tap_action:
              action: toggle
          entity_2:
            entity_id: cover.tapparelle_cameretta
            templates: >
              {%if is_state("cover.tapparelle_cameretta", "closed")%}
              - blue_on
              {% else %}
              - yellow_off
              {% endif %}
            tap_action:
              action: toggle
          entity_3:

Hello, have you solved it? I have the same problem and I can’t find the solution.
Thank you

No way to make it work.
I moved to the new tile cards + card-mod

GitHub - thomasloven/lovelace-card-mod: 🔹 Add CSS styles to (almost) any lovelace card

much more flexible …

1 Like