3 Button Garage Door Issues

I’m not sure the best place to put this. I’m sure its a code problem but I can’t seem to get it working. I removed all components and am working with just the wemos d1 mini, and I’ve tried several of them to ensure that it’s not a bad board. When I upload my code and re-add to HA I the device shows the up arrow, stop square, down arrow, like it should but the open arrow is greyed out.

Here is my code


  name: "door-test"


  board: d1_mini

# Enable logging


# Enable Home Assistant API




  ssid: !secret wifi_ssid

  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails


    ssid: "DoorTest"

    password: "DoorTestPassword"



  - platform: gpio

    internal: true

    pin: 5

    id: relay_open

  - platform: gpio

    internal: true

    pin: 4

    id: relay_close

  - platform: gpio

    internal: true

    pin: 14

    id: relay_stop


  - platform: template

    name: "Garage Door"


      - switch.turn_on: relay_open

      - delay: 1s

      - switch.turn_off: relay_open


      - switch.turn_on: relay_close

      - delay: 1s

      - switch.turn_off: relay_close


      - switch.turn_on: relay_stop

      - delay: 1s

      - switch.turn_off: relay_stop

I was able to work around the problem by using a time based cover template instead. I can post the code I used if anyone is interested.

The code from your first post looks okay to me. It doesn’t look like you have feedback for the door being opened or closed so to get both buttons active try assumed_state: true

assumed_state (Optional, boolean): Whether the true state of the cover is not known. This will make the Home Assistant frontend show buttons for both OPEN and CLOSE actions, instead of hiding one of them. Defaults to false.

1 Like