wake up from deepsleep at sunset

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dondolo
Normal user
Posts: 77
Joined: 03 Jul 2019, 06:56
Location: Germany

wake up from deepsleep at sunset

#1 Post by Dondolo » 11 Nov 2019, 11:59

Hi, my idea is.
Turn on a small lamp at sunset for 4 hours.
The rest of the time should save the ESP01 in Deepsleep mode power.

Is there a way to wake up the ESP01 at sunset? (Pause?)

greeting
dondolo

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

Re: wake up from deepsleep at sunset

#2 Post by TD-er » 11 Nov 2019, 12:15

No not really.
Also the interval for the ESP cannot be set that high, although for core 2.5.2 and higher it can be set longer than 70 minutes.
I think the max is about 3.5 hours.
Also the deep sleep clock isn't that accurate, so if you set the remaining sleep time in rules, you may want to make the last "jump" a bit shorter just to compensate for the drift of the clock

Dondolo
Normal user
Posts: 77
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: wake up from deepsleep at sunset

#3 Post by Dondolo » 11 Nov 2019, 13:42

Ok, thanks for the feedback.
Then I'll have to look for another solution.
The lamp with the sunset is still interesting to me.

Greetings Dondolo

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

Re: wake up from deepsleep at sunset

#4 Post by TD-er » 11 Nov 2019, 14:36

Well you can use rules to turn the unit off when it isn't time yet and set the new sleep time.
It is just that it cannot sleep for > 3.5 hours at a time, so you have to do it in intervals.

Dondolo
Normal user
Posts: 77
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: wake up from deepsleep at sunset

#5 Post by Dondolo » 12 Nov 2019, 17:54

Ok, a good hint, thanks,

Then the ESP would wake up about four times a day for about two minutes. That's OK

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

Re: wake up from deepsleep at sunset

#6 Post by TD-er » 12 Nov 2019, 18:21

I think it will be about 10 seconds wake time to get a WiFi connection and get the time from NTP.

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

Re: wake up from deepsleep at sunset

#7 Post by kimot » 18 Nov 2019, 20:13

You can use some little electronic ( photoresistor or photo diode etc ) .
Sleep ESP forever and after sunset create short pulse on RST to wakeup.
On boot sequence switch your lamp on, count 4 hours, switch lamp off and do sleep command.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 19 guests