The power supply is a cheap apple charger clone that claims 1 amp at 5 volts.
"And the gpio pin usage wasn't what I expected, so what ESP are you using?"
Its an ESP8266 01, the 1 MB version. I think I know what you mean; I'd have preferred to put the switch on either the Tx or Rx lines, but as I mentioned in another thread, interrupts didn't work reliably on these (I tried lowering the value of the pull ups, btw). Again, polling seems to work fine even on the TX and Rx, suggesting there's nothing wrong with the hardware.
So, I was forced to put it on the standard gpio. And you're right; the price to be paid is the first time you switch it on, you have to ensure the door is open, or else the code will not execute.
Perhaps migrating to an ESP with more IOs would have been smarter, but I already had the PCB made.
Another aspect that doesn't show in the picture; there's a small 8 pin pic under the ESP; this is nothing more than a simple delay line. When you switch on the ESP, *before* any code takes control of the io lines, they all pulse high for abou 300 ms or so. So, every time the power is interrupted, the relay would operate without this hardware delay. The pic simply keeps the relay off fo a second after switch on, and then follows whatever state its input (the ESP's output) is at.
Have you tried installing the apk? I'm curious as to how the gui scales to different screens.