Cover template for inverting the behavior of a existing cover

I am trying to invert a cover named “cover.markise” with this template cover:

- platform: template
  covers:
    markise_invertiert:
      friendly_name: Markise
      position_template: "{{ 100 - (state_attr('cover.markise', 'current_position') | int) }}"
      open_cover:
        service: cover.close_cover
        data:
          entity_id: cover.markise
      close_cover:
        service: cover.open_cover
        data:
          entity_id: cover.markise
      stop_cover:
        service: cover.stop_cover
        data:
          entity_id: cover.markise

opening and closing is working as expected, but I cannot set directly a position of the inverted cover, its just not possible to click on the position slider in the ui. any hints how to solve this?

Hello @nicx do you have solved the problem ? :slight_smile:
Thanks, Simon

hi @xefil , I ended up in flipping the wires to the physical button, so I do not need the template anymore.

Thanks @nicx for sharing your solution. I was able to resolve it via cover.
Cheers, Simon