Set somfy shutter to specific position

Hi guys,
when I’m using my somfy shutter with google assistant I can set the shutter to a specific position. With HomeKit I can do the same.
Now I’m trying to realize it in HA.
I defined a helper “input_number”. I want to overtake this value to the position of “set_cover_position”.
But it doesn’t work.

This code works fine:

- id: '1675281990994'
  alias: Neue Automatisierung
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_boolean.urlaub
    from: 'off'
    to: 'on'
  condition: []
  action:
  - device_id: f95eb0da38f514d668b76c967bdea62b
    domain: cover
    entity_id: cover.fenster_esszimmer
    type: set_position
    position: 10
  mode: single

But this doesn’t work:

- id: '1675281990994'
  alias: Neue Automatisierung
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_boolean.urlaub
    from: 'off'
    to: 'on'
  condition: []
  action:
  - device_id: f95eb0da38f514d668b76c967bdea62b
    domain: cover
    entity_id: cover.fenster_esszimmer
    type: set_position
    position: "{{states('input_number.fenster_esszimmer_soll_position') | int}}"
  mode: single

I hope you can help me out.

Many thanks.

I fixed it.

Here my new code:

  action:
    - service: cover.set_cover_position
      target:
        entity_id: cover.fenster_esszimmer
      data:
        position: "{{states('input_number.fenster_esszimmer_soll_position') | int}}"