Sonoff 4 Channel Pro with Spare Remote Smart Garage Door

Made a Smart Garage Door for my Liftmaster Security 2.0 Garage Door. Details of the build are here

1 Like

Why use the Sonoff when you have an ESP board doing the door position detection?

Use the ESP board to activate the door as well (via an optocoupler if the door controller isn’t 3.3v logic).

Yep that’s what I used esp with relay and ultrasonic sonoff 4 ch seems overkill

My garage door is Security 2.0. I can’t just toggle the relay on the door opener itself.

I’m not asking you to. Connect an ESP output pin to one of the buttons of the remote (at the same place you used the sonoff relay). i.e use the esp to sense the door and push the remote button. No need for the sonoff.

From the photo the remote has a 3v lithium coin cell. So the ESP and remote won’t even need a relay or optocoupler.

I gotcha. Thanks. Can the ESP8266 simulate the inching function of the Sonoff? I can load Homie or Tasmota firmware. That’s the only thing I can’t square up in my mind…just hitting the button for the 1 second or so needed.

Thanks for the help and explanation. I’d love to use this 4 Channel pro for something else.

Absolutely it can. This is my favourite ‘plug and play’ platform for the esp:

All configured with a simple yaml file.

Edit: actually I misread that as ‘latching’ not inching. Not sure how that works. If it’s just pulses it should work.

That’s what I’m trying to figure out. I have a spare ESP8266 and trying to get a button push to go from on to off to on again. Triggering the remote will leave it in the on state I think unless you use some kind of inching relay.

Have a read lower down this page: GPIO Switch — ESPHome

To create momentary switches, for example switches that toggle a pin for a moment, you can use template switches.

An example that uses a single relay to activate a remote control button. The button can only start or stop the motor of the gate. In itself, the button or remote can not know if it opens or closes the gate. The relay simulates the button press for 500ms.

  - platform: gpio
    pin: 25
    id: relay
  - platform: template
    name: "Gate Remote"
    icon: "mdi:gate"
    optimistic: no
    - switch.turn_on: relay
    - delay: 500ms
    - switch.turn_off: relay

I kind of dug deeper into this and found out I could hook a $3 single channel relay to a GPIO on the Nodemcu that was flashed with Tasmota and give it a “PulseTime 10” command which equals a one second activation of the relay.

I’ll test this a few days before deploying it. Would love to get that 4 Channel Pro back for other projects.

Some advantages of the 4 channel pro though are that it is RF controlled and you can program a super cheap keychain remote to open the garage. That means instead of buying $28 spare remotes for family I can pay a fraction of that.

In addition to that I have several 433 MHz outlets around the house. So not only could family open the garage door with the $5 remote they could turn some lights on in the house first.

The 4 Channel Pro of course is better suited to a 2 car garage and room to grow with devices and such. So far the 4 Channel Pro has not hiccuped and caused any problems. Unsure about the Nodemcu and cheap relay as it is untested.

And the 4 Channel Pro looks better and more professional than just having relays and ESP8266’s stuck to the garage wall.

One thing not acceptable to me is the garage door going up uncommanded, although I wrote an automation to auto close it after a few minutes.

Fun project and yeah, the 4 Channel Pro might be overkill, but I’m an overkill kind of guy. But if the Nodemcu and relay are robust enough…

I have nodemcus all over my house. Never had an issue with any of them (that wasn’t due to my mis-configuration).

So do I. What firmware? I just figured out you can put Tasmota on these things. I was running Homie but I like the control interface of Tasmota WAY better.

Last night I already had one hiccup with it. I was in the Console for a while and when I flipped back to the Main page the relay fired. That’s not acceptable for a garage door, and I travel quite a bit.

Since then I hard restarted it and have been trying to recreate and can’t. I wouldn’t care if this were a lamp or something but the end game is garage door. I’m gone way too much to have my garage door just going up by itself.


Everything is configured with a simple web interface and a yaml file.