Deepsleep resets during overnight sleep.

102 views
Skip to first unread message

Jim Ford

unread,
Mar 31, 2023, 9:57:05 AM3/31/23
to TasmotaUsers
I'm getting problems where my D1-Mini is rebooting during deepsleep. This line appears to be the culprit::
22:45:48.586 DSL: Reset wrong settings wakeup: 0, slip 10000

I've searched the web and found similar issues, but they didn't make sense to me and more importantly didn't provide a fix. I would welcome some help, please.

Philip Knowles

unread,
Mar 31, 2023, 11:41:44 AM3/31/23
to Jim Ford, TasmotaUsers

It might help if you tell us what deepsleeptime settings you’ve used

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9163fc4d-b526-4c6e-86ad-08049681a780n%40googlegroups.com.

 

Message has been deleted
Message has been deleted
Message has been deleted

jim

unread,
Mar 31, 2023, 12:55:09 PM3/31/23
to Philip Knowles, TasmotaUsers
Thanks for the reply, Philip. I've tried responding on the forum web
page, but the message keeps getting deleted!

I've based the deepsleep time on the number of seconds between sunset
and sunrise. Last night it worked out at 40320 seconds. These seem to be
the relevant lines in the console log:

22:45:47.525 RUL: TIME#MINUTE>%SUNSET% performs "BACKLOG Power1 0;
DeepSleepTime 40320.000"
22:45:47.558 MQT: stat/tasmota_3438E5/RESULT = {"POWER":"OFF"}
22:45:47.561 MQT: stat/tasmota_3438E5/POWER = OFF
22:45:47.761 MQT: stat/tasmota_3438E5/RESULT = {"DeepSleepTime":40320}
22:45:48.586 DSL: Reset wrong settings wakeup: 0, slip 10000

It seems that with deepsleep it's not just a matter of pumping in a time
- there are other considerations that I can't get my head round at the
present. In particular 'DeepSleep Algorithm General Timing' and
'Overcome network issues' I find particularly opaque.

Jim





On 31/03/2023 16:41, Philip Knowles wrote:
> It might help if you tell us what deepsleeptime settings you’ve used
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
>
> *From: *Jim Ford <mailto:jimf...@gmail.com>
> *Sent: *31 March 2023 14:57
> *To: *TasmotaUsers <mailto:sonof...@googlegroups.com>
> *Subject: *Deepsleep resets during overnight sleep.

Andrew Russell

unread,
Mar 31, 2023, 2:55:56 PM3/31/23
to jim, Philip Knowles, TasmotaUsers
Try a deepsleep time of 5 mins.
The usual technique is to set the rules go back into deepsleep unless it's time to wake up.
If you google ESP8266 max deepsleep time, you will see a few different opinions, but they are all much shorter than you are using.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

Philip Knowles

unread,
Apr 4, 2023, 1:37:59 AM4/4/23
to Jim Ford, TasmotaUsers
Are you using a rule to calculate the deepsleeptime? If you are show us the rule.
You don't need to deep sleep all the time just allow it to wake up and send it back to sleep until you need it.


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Jim Ford <jimf...@gmail.com>
Sent: Friday, March 31, 2023 5:29:53 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: Deepsleep resets during overnight sleep.
 
The deepsleep is is calculated for the  period between sunset and sunrise. Last night it came to 40320 seconds.The following lines from the console log seem to highlight the problem:
 22:45:47.761 MQT: stat/tasmota_3438E5/RESULT = {"DeepSleepTime":40320}
22:45:48.586 DSL: Reset wrong settings wakeup: 0, slip 10000

I've looked at the docs but am finding the sections in Deepsleep 'Overcome network issues' and 'DeepSleep Algorithm General Timing' rather opaque!
Thanks for the reply.
Jim

Andrew Russell

unread,
Apr 4, 2023, 3:50:39 AM4/4/23
to Philip Knowles, Jim Ford, TasmotaUsers
The following works. Remove the comments before pasting into the console.
It uses Global Timer #1 to put it into DeepSleep for 5 minutes at sunset.
The rules continue to put it back into DeepSleep until sunrise.


# Latitude and Longitude are required to calculate sunset and sunrise.
Backlog0 TimeZone 99; TimeSTD 0,0,10,1,2,0; TimeDST 0,0,3,1,1,60; Latitude 51.318331; Longitude -0.556938 # Correct for UK

Timer1 {"Enable":1,"Mode":2,"Time":"00:00","Window":0,"Days":"SMTWTFS","Repeat":1,"Action":3}   # at sunset, call Rule Clock#Timer=1

Timers 1 # Enable Timers

Rule1
 ON Time#Initialized DO Backlog DeepSleepTime 0; event checksunrise=%time%; event checksunset=%time% ENDON
 ON event#checksunset>%sunset%   DO DeepSleepTime 300 ENDON
 ON event#checksunrise<%sunrise% DO DeepSleepTime 300 ENDON
 ON Clock#Timer=1 DO DeepSleepTime 300 ENDON
 
Rule1 1 # Enable Rule1



Reply all
Reply to author
Forward
0 new messages