Custom Button Card for roller shutter

Hello,

I am trying to use the custom button card for a roller shutter I have (I have some more specialized shutters that I need to use the custom button card for and I want to have the same button design on my dashboard so I stick with the button card even for the simple roller shutters).
When I click the button I receive the following error message:

Failed to perform the action cover/set_cover_position. expected int for dictionary value @ data[‘position’]

My current custom button card configuration is:

show_name: true
show_icon: true
size: 10%
type: custom:button-card
entity: cover.rollladen_buro_katharina_roller_shutter_2
tap_action:
  action: call-service
  service: cover.set_cover_position
  data:
    # I know the issue is coming from the code for the position input. 
    # When I change this to a number e.g. 32 it works.
    position: |-
      [[[ 
        return states['input_number.raffstore_position_input'].state
      ]]]
    entity_id: cover.rollladen_buro_katharina_roller_shutter_2
name: Büro Katharina
icon: |-
  [[[ 
    if (entity.attributes.current_position === 0)
    return "mdi:blinds-horizontal-closed"
    else if (entity.attributes.current_position < 100)
    return "mdi:blinds-horizontal"
    else if (entity.attributes.current_position === 100)
    return "mdi:blinds-open"
  ]]]

Any help is very much appreciated!

BR

Tim

      service_data:
        position: "[[[ return Math.abs(states['input_number.raffstore_position_input'].state); ]]]"

My final code I ended up with:

show_name: true
show_icon: true
size: 10%
type: custom:button-card
entity: cover.rollladen_buro_katharina_roller_shutter_2
tap_action:
  action: call-service
  service: cover.set_cover_position
  data:
    position: |-
      [[[ 
        return Math.abs(states['input_number.raffstore_position_input'].state)
      ]]]
    entity_id: cover.rollladen_buro_katharina_roller_shutter_2
name: Büro Katharina
icon: |-
  [[[ 
    if (entity.attributes.current_position === 0)
    return "mdi:blinds-horizontal-closed"
    else if (entity.attributes.current_position < 100)
    return "mdi:blinds-horizontal"
    else if (entity.attributes.current_position === 100)
    return "mdi:blinds-open"
  ]]]