Wemos D1 mini - wake both when door opens and closes
Posted: Thu Sep 20, 2018 1:47 pm
I'm working on a project where I have a Wemos D1 mini in infinite deepSleep until something happens. I have a bipolar reed contact which is triggered by a door opening/closing. What I'm trying to achieve is waking the esp8266 up both when the door opens and when it closes. The reason for this is that I want to send an MQTT message to handle each event separately (e.g. turn a light on when door opens, turn it off when it closes).
This seemed to come closest to what I'm trying to get at, but I couldn't get it to work: https://hobbytronics.pk/esp-deep-sleep-input-wakeup/
I've been searching around and experimented a lot, but I just can't seem to figure out how to do it. Could you guys help me in the right direction?
This seemed to come closest to what I'm trying to get at, but I couldn't get it to work: https://hobbytronics.pk/esp-deep-sleep-input-wakeup/
I've been searching around and experimented a lot, but I just can't seem to figure out how to do it. Could you guys help me in the right direction?