-->
Page 1 of 2

Wemos D1 mini - wake both when door opens and closes

PostPosted: Thu Sep 20, 2018 1:47 pm
by Pjanssen
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?

Re: Wemos D1 mini - wake both when door opens and closes

PostPosted: Tue Dec 11, 2018 3:39 pm
by Glorifiedg
Hey! Have you reached a solution?

Re: Wemos D1 mini - wake both when door opens and closes

PostPosted: Wed Dec 12, 2018 1:33 pm
by aaravth4
Any update on this??

Re: Wemos D1 mini - wake both when door opens and closes

PostPosted: Wed Dec 12, 2018 2:00 pm
by Pjanssen
Glorifiedg wrote:Hey! Have you reached a solution?

No..