In the last update my ESP32 project can’t recover from deep sleep: I use “deep_sleep enter until : HH:mm:ss”
I see in logs that the time calculated is wrong: if I want 2 minute after enter deep_sleep the value calculated is 62 minutes.
I use meantime the sleep_duration feature that works.
thanks.
Please post your yaml.
No logs, no YAML, can only guess.
Since the time is off by 60 min (one hour) and some of the world has entered summer time but not the rest, I suspect a confusion of time zone/offset from GMT.
1 Like
Sorry for late, this is the log for 8H with this code:
deep_sleep:
id: deep_sleep1
sleep_duration: 8 hours
[18:33:11.622][C][deep_sleep:027]: Deep sleep:
[18:33:11.632][C][deep_sleep:030]: Sleep Duration: 28800000 ms
and it’s ok.
But if I use this code:
time:
- platform: homeassistant
id: esptime
on_time:
- seconds: 0
minutes: 45
hours: 22
then:
- switch.turn_on: switch_antiburn
- switch.turn_off: lcdbacklight
- delay: 1 min
- deep_sleep.enter:
id: deep_sleep1
until: "06:45:00"
time_id: esptime
the log report a wrong calculated sleep duration (I can’t rebuild now to post the log in this case, but trust me it is wrong from 2026.3 upgrade)