Here is my take on building battery based door and motion sensors. I used ESP8266 and ESPNOW and the help of an ATtiny.
I managed to get it to be in the low uAmps while in stand by and have it trigger in under 1/4 second. The demos in the videos are how I am using them in my house.
There is a a long discussion on github if you are interested in reading it. But from what I understood, it is possible with some workarounds and more complicated code.
I chose the 2x D1 minis approach because it is almost bulletproof and the D1 mini is cheap. It just wasn’t worth the headache to try to jam everything in one D1 mini and think about all the corner cases.
But I could be wrong. If someone knows how to reliably do it with one d1 mini, please bless my gitlab repo