Esp 8266 has 3 sleep mode :
modem sleep 15 mAh
light sleep 0.5 mAh
deep sleep 10uah
with modem sleep and light sleep we can still use control of GPIO .
I've search a lot on the internet about this option in esp easy with no success.
![Huilen :cry:](./images/smilies/icon_cry.gif)
Regards
Moderators: grovkillen, Stuntteam, TD-er
I have made a highly experimental plugin to use modemsleep functionality instead deepsleep.frogmangeek wrote: ↑25 Mar 2017, 09:44 For sure. I am making autonomous solar greenhouse, I could divide by 2 power consumption with this, and keep automation even when WiFi off.
Wifi only use is for sending data to my website. Unless automation control which needs to be always on wifi does not.
I am currently awaiting my P165 plugin pull request to finish, after it i will push this P166 to the playground.grovkillen wrote: ↑28 Nov 2017, 22:28 Whoo hoo, sounds like a cool feature. Might want to put that on the playground?
Source code is on github:grovkillen wrote: ↑28 Nov 2017, 22:28 Whoo hoo, sounds like a cool feature. Might want to put that on the playground?
Code: Select all
on System#Boot do
killap,0 // AP mode possible for 60sec
timerSet,1,60
endon
On Rules#Timer=1 do
killap,1 // AP mode disable
endon
on System#WifiState=0 do // if no wifi connection
if [wifiman#ModemSleep] = 0 // if modemsleep not active
timerSet,2,10 // after 10sec go to timer2
endif
endon
On Rules#Timer=2 do
If [wifiman#Connected] = 0 // if no wifi connection
modemsleep,1 // enter modemsleep mode
timerSet,3,600 // for 10 minute
endif
endon
On Rules#Timer=3 do
if [wifiman#ModemSleep] = 1 // if modemsleep active
modemsleep,0 // exit from modemsleep and reconnect wifi
timerSet,2,10 // wait for 10sec then recheck wifi status
endif
endon
I'm not offended if certain WiFi features will be embedded to the ESPEasy core.
+1 for inclusion in main code
Yes, without adding and enabling a plugin the commands inside of it will not work.
Users browsing this forum: No registered users and 0 guests