I have an old door which is in urge of some smartness.
The code is on muka/door-opener
It contains some scripts to get started and the codebase for the nodemcu
Based on this post most pins are high at boot and should not be set to low to avoid boot issues.
Considering our door should not open if there is a power outage the control ping will be
GPIO5. Power and ground can be a
Connection pf the nodeMcU to the relay
To connect the relay to the 12v adapter
- NO goes to 12v +
- CTRL goes to 12v -