First, sorry by my bad english, i speak spanish, but i will try to explain my problem.
I programed my ESP-1 with LUA, I use first, a initial program init.lua that wait for 5 second before open the main program, main.lua, in order to avoid problems and reflashig in case that program get into a bucle.
The problme is that in these second gpio0 and gpio2 are high, I connected this two pins to relays that activate a electric door, so do you understand my problem?, in case that power energy get out and comeback, this energy mistake will produce that the door will open.
Really thanks for your comments and help.