Trying to stop all the covers at current position

Hi,
i have some covers actuated and the covers does not support the stop button command.

So i’m trying to make them stop at the current position.
I created this script looking around the forum but it doesnt work

test_blocca_chiusura_tapparelle:
  alias: Test Blocca Chiusura Tapparelle
  sequence:
  - service: cover.set_cover_position
    data:
      position: '{{ expand(covers.tapparelle_casa) | selectattr(''position'') | map(attribute=''position'')
        | join('', '') }}'
    target:
      entity_id: '{{ expand(covers.tapparelle_casa) | map(attribute=''entity_id'') | join('', '')
        }}'
  mode: single
  icon: mdi:close-octagon

I’m trying to targeting all the covers (entity covers.tapparelle_casa).
If i run the script i get:

Error: Error rendering service target template: UndefinedError: 'entity_id' is undefined

any hint?

You can’t change a target with an entity, and you can’t change an entity with a target. They are different things in Home Assistant. (format wise)

What he said below…

The domain is wrong.