Screen control by 2 separate switches

i have two separete switches to control the screen up or down

now im busy to make a screen control
2

the code i have at templates.yaml


- cover:
      - name: Screen
        device_class: shutter
        
        position: "{{ states('input_boolean.screen_up') }}"
        
        open_cover:                                      # move screen to UP
          - condition: state
            entity_id: input_boolean.screen_up           # IF screen is not UP
            state: "off"
          - condition: state
            entity_id: switch.screen_besturing_relay1    # and IF switch screen DOWN not activated
            state: "off"
          - action: switch.turn_on
            target:
              entity_id: switch.screen_besturing_relay2  # activate screen UP
              
        close_cover:                                     # move screen to DOWN
          - condition: state
            entity_id: input_boolean.screen_up           # IF screen is UP
            state: "on"
          - condition: state
            entity_id: switch.screen_besturing_relay2    # and IF switch screen UP not activated
            state: "off"
          - action: switch.turn_on
            target:
              entity_id: switch.screen_besturing_relay1  # activate screen DOWN
        
        icon: >
          {% if is_state("input_boolean.screen_up", "on") %}
            mdi:window-shutter-open
          {% else %}
            mdi:window-shutter
          {% endif %}

But how can i the change the arrow color
when screen is up the arrow to move up should be grey-out like this
3

and when screen is down the arrow to move down should be grey-out

can somebody help me in this case ?

https://www.home-assistant.io/integrations/template/#cover

I think you should have a state template instead of position. Position is supposed to be 0-100, not a boolean.

Try instead:

state: "{{ is_state('input_boolean.screen_up', 'on') }}"

Hi Karwosts

Yes this is working, thx

4

Only thing is, it is purple when it is open (1)
and when it is closed it is standard color , blue

it should actually be the other way around

How can i get something like this

Do i have to overricht the default themes ?
Every attempt i have made, the icon disappeared