Wemos D1 mini sleeps without sleepmode?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
remko2000
Normal user
Posts: 68
Joined: 28 Dec 2017, 15:56

Wemos D1 mini sleeps without sleepmode?

#1 Post by remko2000 » 11 Feb 2018, 19:22

I would like to make a wifi / ITFF button with a Wemos d1 mini. I therefore connected a button to my wemos (on ground and gpio 6). With this I want to switch a light on and off (domoticz). This works fine, however, to a few hours the wemos seems to fall asleep after which the button does not work. If I press the switch a few times (this is a bit annoying), it will work again. However, I have not activated the sleep mode in the esp easy software. How can this be explained? In the log of the wemos I do not see a strange message except a lot of reports: '27996619: WD: Uptime 467 ConnectFailures 0 FreeMem 19592'.I do not know if this has anything to do with this.

And what is the right configuration if I want to use the sleep mode and also wants the wemos to go back to sleep after a push of the button. But wake up again after 1 press of the button (and my light switches)? I read that I then have to use the RST pin, but how do I switch a light if I do not use a GPIO connection but the RST?

TD-er
Core team member
Posts: 8738
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos D1 mini sleeps without sleepmode?

#2 Post by TD-er » 11 Feb 2018, 20:03

How is the ESP communicating with Domoticz?
MQTT or HTTP?
What version of ESPeasy?

remko2000
Normal user
Posts: 68
Joined: 28 Dec 2017, 15:56

Re: Wemos D1 mini sleeps without sleepmode?

#3 Post by remko2000 » 11 Feb 2018, 21:34

It communicating by HTTP. I run version ESP easy 2.0.0- dev12

TD-er
Core team member
Posts: 8738
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos D1 mini sleeps without sleepmode?

#4 Post by TD-er » 11 Feb 2018, 23:20

Any idea what uptime it had?
Give or take 49.7 days?

remko2000
Normal user
Posts: 68
Joined: 28 Dec 2017, 15:56

Re: Wemos D1 mini sleeps without sleepmode?

#5 Post by remko2000 » 12 Feb 2018, 17:25

If you mean how long the wemos online was: 0 days 5 hours 13 minutes.
Is that what you were asking?

remko2000
Normal user
Posts: 68
Joined: 28 Dec 2017, 15:56

Re: Wemos D1 mini sleeps without sleepmode?

#6 Post by remko2000 » 16 Feb 2018, 15:58

Solved. After a hardreset of the wemos it works!

TD-er
Core team member
Posts: 8738
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos D1 mini sleeps without sleepmode?

#7 Post by TD-er » 17 Feb 2018, 16:14

remko2000 wrote: 12 Feb 2018, 17:25 If you mean how long the wemos online was: 0 days 5 hours 13 minutes.
Is that what you were asking?
Yep, but also the powered time, which can be hard to guess.
We had some issues in the past where several things stopped working after 2^32 millisec uptime. (= 49.7 days)
And since your build was old enough to be from before that fix, I thought it may be related.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests