I broke the manual toggle button of one of my Basic R3s. As I was about to solder a new one, I thought about making a garage door (gate) opener out of it, in other words, a dry Normally Open contact.
I really didn’t like the pcb butchering method, so I went with the safe low-voltage way to just power the ESP portion of the switch.
An old Samsung phone charger although it states 4.75V on its label gave out a nice 5.058V on my RMS multimeter.
I then soldered the positive and ground cables to the 5V and Ground pins you see in the picture below
Chopped off a few plastic teeth off the tray so i wouldn’t pinch the cable with the pcb when closed.
and this is how it looks from the top
Now the Line in and and Line Out are your Normally Open Contacts.
Plug the charger on the wall, pair it with ewee link app, give it a name (Gate Opener for example).
Go to Device settings and under inching settings set the duration to 0.5 seconds.
I use AlexxIT’s Sonoff Lan add-on, so the rest follows this addon’s instructions.
Rename .sonoff.json to sonoffback.json (I always do that instead of deleting it, just in case something goes horribly wrong)
Configuration -> Server Controls -> Check configuration -> Restart Server
You should now see the new entity under the name you gave it (in my case Gate Opener)
Go to your lovelace UI and add a Button card with the enity you just created.
My code looks like this.
name: Gate Opener
Enjoy your new (safe-voltage) garage door opener.