I'm using a esp8266 to build a remote control to power a gas fireplace. I'm using this guide to try and maximize battery life.
The concept is the controller uses its built in WiFi to access a RESTful API on a remote server; If the API discovers"1", it should close a switch and the fireplace turns on. If the arduino reads a "0" via the API it opens the switch and the fireplace turns off. After discovery and performing the required action the unit calls Deepsleep and shuts off for ten seconds, whereupon it powers up and the cycle repeats itself again.
I just realized that if the controller powers off, I don't know what happens to the switch. If the fireplace was turned on, what happens when deep sleep starts. Is there a way (special switch?) that maintains its state in deepsleep mode?