Copy Cover Postion from one to an other cover

Hi,
when I switch off my TV I want I want to set the position of one roller shutter cover to be the same as the neighboring cover currently has. Is this posible with normal automations? I can´t find a way get a cover postion and use this as the input for the other cover postion.

Thanks!

alias: Keukengordijn rechts even hoog als midden
sequence:
  - service: cover.set_cover_position
    target:
      entity_id: cover.rechter_keukengordijn
    data:
      position: '{{ state_attr(''cover.keukengordijn_midden'', ''current_position'') }}'
mode: single
1 Like

That worked like a charm. Thanks a lot.

1 Like