Cover - only one button

Hello, I have a garage door that is configured in HA as light.basculante…
Onboard the relay is configured to switch on and off automatically after 1 sec. Because the automatic door has only one button: when it is pressed it opens, if is pressed again it stops and if pressed again it stops…

Now, I’d like to show in HA only one button and not the up/stop/down…
I have done this:

cover:
  - platform: template
    covers:
     door_garage:
        unique_id: door1
        friendly_name: "door1"
        optimistic: false
        position_template: "50"
        open_cover:
          service: light.turn_on
          data:
            entity_id: light.basculante
        close_cover:
          service: light.turn_on
          data:
            entity_id: light.basculante
        stop_cover:
          service: light.turn_on
          data:
            entity_id: light.basculante

It works but I’d like only one button…
Many thanks

Hey, I’m running into the same thing right now with smart-ifying a dumb garage door. Every get this figured out? Every thread I find brings me back to cover.

Same issue here - single button garage door opener, Shelly connected and I get three buttons through the Cover template which all do the same thing!

I have made a blueprint to control a cover with one button: Link to Blueprints: start import – My Home Assistant

If more close (Or closed), it is opening, if more open (Or open), it is closing. If opening or closing, it stop.

Hey @motial I’d love to try your blueprint (to replace an overly complicated nodered flow that does the same thing) but the link isn’t working for me. Can you give us a link direct to the yaml. Cheers, Pete.