Hi all,
I'd like to put the espeasy in deep sleep mode from 02am to 05am.
Is it possible to make something like this, in a way that espeasy can understand?
On Clock#Time=All,02:00 do
System.sleep(SLEEP_MODE_DEEP, 10800);
endon
thanks
is it possible to put espeasy in deep sleep in a rule?
Moderators: grovkillen, Stuntteam, TD-er
Re: is it possible to put espeasy in deep sleep in a rule?
This is also relevant for my implementation: https://www.letscontrolit.com/forum/vie ... 727#p16727
I have tried activating deep sleep from the rules, and checked that the command deepSleep(delay) is actually executed in the https://github.com/letscontrolit/ESPEas ... d.ino#L262 , but that does not activate sleep for some reason, now investigating further.
I have tried activating deep sleep from the rules, and checked that the command deepSleep(delay) is actually executed in the https://github.com/letscontrolit/ESPEas ... d.ino#L262 , but that does not activate sleep for some reason, now investigating further.
Re: is it possible to put espeasy in deep sleep in a rule?
I have tried the following on mega version:
and have observe4d such behavior in log, note that I have added the Extra debug - going to sleep serial print on the firmware, just to be sure that piece of code is being executed.
Now this happens because the command deepSleep is currently implemented in such a way that it can only be used if deepSleep is enabled in settings, which is different from the way we wish to use it. This is the fix: https://github.com/IRNAS/ESPEasy/commit ... 2f5f38a38a
Code: Select all
On gpio#Switch do
deepSleep,30
endon
Code: Select all
EVENT: gpio#Switch=0.00
ACT : deepSleep,30
Extra debug - going to sleep.
SW : State 1
EVENT: gpio#Switch=1.00
ACT : deepSleep,30
Extra debug - going to sleep.
SW : State 0
Who is online
Users browsing this forum: No registered users and 26 guests