Cover template garage door with shelly plus uni, no sensor input issue

Hi everyone.

I am pretty new to HA and all the yaml stuff is pretty confusing for me.

I used to have a tuya garage door opener with integrated reed switch, everything worked fine all the opening and closing, also door status. But the device regularly disconnected.

So i “updated” to Shelly plus uni. But now i cant get the sensor info to work with the template.

Buttons work, and shelly input sensor, that has the reed switch, also works in the shelly integration. But the template doesnt use that information.
What am i doing wrong here? heres my configuration.yaml code

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        value_template: "{{ is_state('binary_sensor.garage_door', 'on') }}"
        open_cover:
          service: switch.turn_on
          entity_id: switch.garage_door
        close_cover:
          service: switch.turn_on
          entity_id: switch.garage_door
        stop_cover:
          service: switch.turn_on
          entity_id: switch.garage_door

i have changed the entity and sensor names according to what i have them in the shelly integration.

show as: opening
binary_sensor.garage_door

Show as: switch
switch.garage_door

the switch i have changed to show as : cover, so it creates a new entity: cover.garage_door_button

One update.
Currently when i push the open button, the door state goes to open for a split second. I have changed the button to turn off after 0.5 seconds.

So the state indicates as a press of a button somehow?

not really sure what has happened, but playing with some other non related settings and after few restarts it magically started to work correctly.