Commit Graph

39 Commits

Author SHA1 Message Date
stefanbode a4361acc06
Refactor Deepsleep to new uint64 capability
removed 71min limit and simplify driver.
2022-01-30 20:27:32 +01:00
stefanbode d49410c17e
Update xdrv_29_deepsleep.ino 2022-01-28 16:52:00 +01:00
stefanbode 3b8b473bd4
fix logging 2022-01-28 16:50:11 +01:00
stefanbode 9388c70689
Update xdrv_29_deepsleep.ino 2022-01-28 16:36:46 +01:00
stefanbode 6df1f0bb26
added compiler option: #ifdef DEEPSLEEP_NETWORK_TIMEOUT
additional code optional compiled
2022-01-28 16:15:48 +01:00
stefanbode 11284bbd49
Introduce DEEPSLEEP_NETWORK_TIMEOUT = 15
Network timeout can be configured in seconds or totally disabled by = 0
2022-01-28 12:06:59 +01:00
stefanbode 13280c985d
Added WIFI check to avoid extensive battery usage
The device is send to an additional deepsleep cycle if there could not establish a WIFI connection with IP in the first 15 seconds after startup. Normal connection time is 6-7 seconds. Address #14483
2022-01-28 08:39:41 +01:00
stefanbode bcfc6fd2cd
Move time calculation into local timezone
Switch from UTC to local time to make better predictions on wakeuptime for long deepsleep cycles. #14483
2022-01-27 12:04:59 +01:00
Theo Arends 5e805e0c4a Move Settings from DRAM to heap 2021-06-11 18:14:12 +02:00
Theo Arends 2f5c20a42f Add more rule triggers 2021-04-07 15:07:05 +02:00
Barbudor 227f076263 update comment for topic used 2021-03-04 20:10:16 +01:00
Barbudor a44d399212 change deepsleep annoucement topic 2021-03-04 20:04:15 +01:00
Theo Arends 223d14e0fe Add strict rule scale parameters 2021-01-31 16:54:28 +01:00
Theo Arends efaed8046d Refactor AddLog usage 2021-01-23 16:26:23 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
stefanbode 01ad0510a1
Fix problem of config loss
Sometimes the deepsleep loop is too fast and causes a config reset. Fixed
2020-12-27 10:51:29 +01:00
Theo Arends 17e6890809 Prep for ESP32-C3 ph2 2020-11-28 16:39:15 +01:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Theo Arends 1da31e5f15 Make LWT state message user configurable
Make LWT state message user configurable (#9395)
2020-09-27 12:51:50 +02:00
Theo Arends d63b8ead8c
Update xdrv_29_deepsleep.ino 2020-08-07 14:56:03 +02:00
stefanbode 490569ccac
Added DeepSleep for ESP32
First implementation of TIME based Deepsleep for ESP32 processors
2020-08-07 14:48:59 +02:00
Theo Arends c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends c9149b53c5 Change pin handling part 1 2020-04-26 17:33:27 +02:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
stefanbode 3fee364fd7
Allow deepsleep to wait for second TELEPERIOD intervall
Compatible with old values  teleperiod10 or 300 to start deepsleep immediately asap.
All Other values (at least >15, because this is often min runtime) for teleperiod causes the device to wait for another teleperiod
eventually fix for #7295
2019-12-22 19:59:56 +01:00
stefanbode f2209109e9
Update xdrv_29_deepsleep.ino 2019-12-20 12:45:29 +01:00
stefanbode f49b498c39
fix #7213
DIV0 fix
2019-12-20 12:40:40 +01:00
Theo Arends 1c3b29b835 Fix unwanted deep sleep initiation
Fix unwanted deep sleep initiation (#6961)
2019-11-19 15:35:41 +01:00
Hadinger 5743486d2a Fix check deepsleep for valid values in Settings (#6961) 2019-11-18 23:11:09 +01:00
Theo Arends 11c5947c23 Fix possible reboot loop regression 2019-11-18 11:02:04 +01:00
Theo Arends f6a7722a3c Refactor RtcReboot counter 2019-11-16 10:42:28 +01:00
Theo Arends 0636113147 Revert "Version bump 7.0.0.5"
This reverts commit edcc17c41b.
2019-11-15 21:30:59 +01:00
Theo Arends edcc17c41b Version bump 7.0.0.5
Add one time flash sdk reset on initial execution solving possible SDK wifi releated issues
2019-11-15 18:10:46 +01:00
Theo Arends 76d17bd198 Fix possible teleperiod misses 2019-11-13 09:25:09 +01:00
Theo Arends fa03f57ca8 Refactor deepsleep
Refactor deepsleep allowing time to update GUI before going to sleep (#6890)
2019-11-12 22:30:44 +01:00
Theo Arends c7a74b82d0 Fix DeepSleep bootloop disable
Fix DeepSleep bootloop disable (#6890)
2019-11-10 12:05:09 +01:00
Theo Arends 1f521ed748 Refactor I2C driver detection phase 3 2019-11-07 17:08:58 +01:00
Theo Arends 6be5daa77c Fix Tele message when DeepSleepTime is 0
Fix Tele message when DeepSleepTime is 0 (#6842)
2019-11-07 14:49:29 +01:00
Theo Arends 0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00