I'm working on a home automation project to control my Sommer Base+ garage door opener through Home Assistant.
The project consists of a WeMos D1 Mini with two reed switches (to detect door open/closed) and a 5V relay to control the door opener.
When the door is open the 'top / open' switch is triggered, giving a status of open. Likewise when the door is closed, the 'bottom / closed' switch is triggered, giving a status of closed. When neither switch is triggered (i.e. when the door is in motion), the status is either opening or closing, depending on the previous status.
This works fine unless the WeMos is powered up while either reed switch is closed (so if the door is open or closed).
I know this is because D3
and D8
GPIO pins for the open/close sensors and those can put the device into boot mode (I think that's what it's called).
What I want to know is which pins are the best to use for this project.
Is it possible for me to just change to pins ??
and ??
without needing to update my code?
Is it possible that the WeMos D1 Mini isn't a good fit for what I want?