I have the idea to use 2 ESP8266 12E Modules to check the Status with a
NC/ NO Door Window Contact.
Both Modules are in deep sleep (current status window closed).
Now the window gets open, the 1 ESP start sending status (MQTT or similar), then go back to deep sleep.
Then Window gets closed, the 2 ESP start send status, and go back to deep sleep.
I think the ESP are so inexpensive, thats this solution the cost effective one?
I will Power with 3 Mignon (AA) Batteries and a low drop MCP <2µA
I hope for a battery lifetime > 1 year, because modules are most in deep sleep.
What do you think? Some ideas to solve this easier, or any programming ideas?