Sonoff SV and Hassio - Garage Opens on first try but closing takes two tries

Hi all

I was wondering if anyone could help me with an issue im having. I have a sonoff SV attached to the garage motor with a reed switch. I can open the garage with the up arrow and the cover changes to a opened garage when it hits the reed switch.

My issue is closing the garage. I click the down arrow and nothing happens, i do hear a click from the relay though. When i click the down arrow my arrow greys out and i cant click it again. When i click the stop button then the garage closes.

Below are my tests and config:

Opening the garage:

16:59:30 MQT: stat/sonoff_garage/RESULT = {"POWER":"ON"} - opening the garage
16:59:30 MQT: stat/sonoff_garage/POWER = ON
16:59:31 MQT: stat/sonoff_garage/RESULT = {"POWER":"OFF"} - 1 second delay
16:59:31 MQT: stat/sonoff_garage/POWER = OFF
16:59:46 MQT: stat/sonoff_garage/RESULT = {"POWER":"ON"} - Hits reed switch
16:59:46 MQT: stat/sonoff_garage/POWER = ON

Clicking close: (does nothing - relay clicks though)

17:01:06 MQT: stat/sonoff_garage/RESULT = {"POWER":"ON"}
17:01:06 MQT: stat/sonoff_garage/POWER = ON
17:01:07 MQT: stat/sonoff_garage/RESULT = {"POWER":"OFF"}
17:01:07 MQT: stat/sonoff_garage/POWER = OFF

Clicking stop now because the down arrow is disabled...
Garage starts to close

17:01:52 MQT: stat/sonoff_garage/RESULT = {"POWER":"OFF"}
17:01:52 MQT: stat/sonoff_garage/POWER = OFF


  • platform: mqtt
    name: “garage”
    state_topic: “stat/sonoff_garage/POWER”
    command_topic: “cmnd/sonoff_garage/POWER”
    payload_open: “ON”
    payload_close: “ON”
    payload_stop: “ON”
    state_open: “ON”
    state_closed: “OFF”
    optimistic: false
    retain: false

    name: Garage Doors
    view: no
    control: hidden
    icon: mdi:garage
    - cover.garage

    device_class: garage
    friendly_name: Garage


- id: '1538071113182'
  alias: Garage Door
  - payload: 'ON'
    platform: mqtt
    topic: cmnd/sonoff_garage/POWER
  condition: []
  - delay: 00:00:01
  - data:
      payload: 'OFF'
      topic: cmnd/sonoff_garage/POWER
    service: mqtt.publish


Are you hearing a double click? Most garage doors only require a momentary connection. Your switch should be opening and closing each time you trigger the door.

my garage door opener has a delay in it …

bool GarageDoorHandler(String value){

  Serial.print("handler value =");
    if (value == "Yes") {
    digitalWrite(RELAYPIN, LOW);
    Homie.setNodeProperty(GarageNode, "on", "Active"); // Update the state of the light
    Serial.println("Gargage is switch  on");
    // include a pause
    digitalWrite(RELAYPIN, HIGH);

  // set switch off 
    Homie.setNodeProperty(GarageNode, "on", "No");
    Serial.println("Gargage is switch off");

Wemos D1 with relay … via MQTT
the delay is on the actual Wemos D1 , but controlled via MQTT