How to make a Shelly 1 plus have a momentary button and not a switch

Hi All,

I am very, very new to HA.

I have a Shelly 1 plus that I use for my garage door. On the Shelly app it is a momentary button but on HA it is a switch. I have been searching to try and find out how I change this on HA to a momentary button.

If anyone knows can they describe the explanation as simply as possible. Im still very new and im slowly picking up the lingo and how the program works.

Cheers

You could create a template button:

# configuration.yaml
template:
  - button:
      - name: Garage Door
        icon: "mdi:garage"
        press:
          - service: switch.turn_on
            target:
              entity_id: switch.your_shelly_switch_here
          - delay: 1
          - service: switch.turn_off
            target:
              entity_id: switch.your_shelly_switch_here

However you would be better off with a template cover, especially if you have a sensor that tells you if the door is open or closed:

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        value_template: "{{ states('sensor.garage_door')|float > 0 }}"
        open_cover:
          - service: switch.turn_on
            target:
              entity_id: switch.your_shelly_switch_here
          - delay: 1
          - service: switch.turn_off
            target:
              entity_id: switch.your_shelly_switch_here
        close_cover:
          - service: switch.turn_on
            target:
              entity_id: switch.your_shelly_switch_here
          - delay: 1
          - service: switch.turn_off
            target:
              entity_id: switch.your_shelly_switch_here
        stop_cover:
          - service: switch.turn_on
            target:
              entity_id: switch.your_shelly_switch_here
          - delay: 1
          - service: switch.turn_off
            target:
              entity_id: switch.your_shelly_switch_here
1 Like

Thanks Tom. Ill give this a go tonight when im home. i dont want to open and close the garage when Im not there :grinning: