Deep Sleep duration by time of day

Hello,

I’m trying to figure out how to control the deep sleep component’s duration at different times of day. For example, during the day, I want it to run for 20 minutes and then sleep for 1 hour. After 7pm, I want it to run for 20 minutes and sleep for 3 hours.

Is this possible?

It should be possible.

If you use the deep_sleep_enter action, the sleep_duration parameter is templatable.

You can, however, also use the undocumented set_sleep_duration() function

Here’s a tread about it: