Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device stays active for 155 seconds before go back to sleep #25

Closed
taste66 opened this issue Mar 13, 2018 · 2 comments
Closed

Device stays active for 155 seconds before go back to sleep #25

taste66 opened this issue Mar 13, 2018 · 2 comments

Comments

@taste66
Copy link

taste66 commented Mar 13, 2018

Thanks a lot for this nice fork of my favorite ESP8266 firmware. I use it on the ESP01 module which I want to power with 2 penlights. Going into and recovering from Deepsleep works fine. However it takes 155 seconds before it goes to sleep again. It also send a number of MQTT messages which would not be needed:
{"WebServerMode":"Admin","Hostname":"ESP01-01","IPAddress":"192.168.2.111"}
{"Module":"Generic","Version":"5.12.0c","FallbackTopic":"DVES_360491","GroupTopic":"sonoffs"}
qos : 0, retain : false, cmd : publish, dup : false, topic : cmnd/ESP01/01/POWER, messageId : , length : 21
{"Time":"2018-03-13T22:36:41","Uptime":"0T00:02:35","Vcc":3.422, "Wifi":{"AP":1, "SSId":"xxxx", "RSSI":48, "APMac":"F8:D1:11:xx:xx:xx"}, "DeepSleep":900, "Heap":23184}

Any idea why this happens?

@stefanbode
Copy link
Owner

Yes. please set the TELEPERIOD = 10 to get minimum wakeup time. This ensures all measurement is done. Normally Teleperiod is 5 minutes. Therefore DEEPSLEEP might keep the device up and running for 5 minutes.

@taste66
Copy link
Author

taste66 commented Mar 14, 2018

Thanks a lot, this did the trick now only 15s active so I can start testing with real batteries :-)

MadDoct pushed a commit to MadDoct/Sonoff-Tasmota-shutter that referenced this issue Aug 21, 2018
Increase human readability of the output data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants