The door sensor reed switch is now power2.
Sonoff switch garage door.
Connect female end of jumper wires to gpio 14 and ground.
Remote control automate monitor home devices like lights temperature and more.
This rule toggles the fake relay on the tasmota gui and can be monitored via the power1 mqtt topic.
This rule watches the tuyamcu packets for the garage door state open or closed via the magnetic reed switch attached to the door.
These are going to the reed switch and will tell you if the garage is open or closed.
The rest is the save as when flashing sonoff.
It is an absolutely affordable wifi garage door opener that can be triggered to open or close the garage door through your smartphone instead of leaving your car.
Now here is the garage door binary sensor for the reed switch.
Powerretain 1 makes the state of the door being open or closed be retained during a home assistant reboot.
The sonoff units take mains power at one end and delivers switched mains power at the other internally they have a small transformer to run the esp8266 device and a 10amp relay to switch the power.
Plug the microusb cable to the nodemcu and while pressing the flash button plug in the usb into your computer.
No idea how to retrofit.
Also note that again yours could be named sonoff and mine is named sonoffgarage.
After setting up the wifi data the device will restart.
Sonoff wireless wifi smart home products turn your home into a smart home at low price.
Here sonoff 4chpror2 wifi smart switch is a worthy investment.
Use a usb cable for power.