Hi,
Found this example:
https://gist.github.com/igrr/54f7fbe0513ac14e1aea3fd7fbecfeab
It uses RTC memories and wake stub to decides whether to continue booting the firmware, or to go back to sleep.
Maybe we could develop a code to run 10 times x 30seconds deepsleep = 300seconds deepsleep (5min)