Garage door always open

Hi there,
i have configured a shelly plus 1 with a shelly addon to control my garage door. Everything works fine on homeassistant but when i add it into homekit it is always shown as open.

my cover template looks like this:

cover:
  - platform: template
    covers:
      exterior:
        friendly_name: "exterior"
        device_class: garage
        position_template: "{{ states('binary_sensor.sensor_input') }}"
        open_cover:
          - condition: state
            entity_id: binary_sensor.sensor_input
            state: "off"
          - action: switch.turn_on
            target:
              entity_id: switch.shellyplus1_switch_0
        close_cover:
          - condition: state
            entity_id: binary_sensor.sensor_input
            state: "on"
          - action: switch.turn_on
            target:
              entity_id: switch.shellyplus1_switch_0
        icon_template: >-
          {% if is_state('binary_sensor.sensor_input', 'on') %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

am i doing anything wrong?? the shelly is configured as button and automatically comes back to off after 1 sec.

think its your

postition_template it has to a number between 0 and 100 not a on/off

but

you can do this

 position_template:  '{% if is_state("binary_sensor.garage_door", "off") %}0{% else %}100{% endif %}'