jwilliams
(Jason Williams)
May 28, 2024, 2:03pm
1
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:
Hi
There is a way (or several) to change the deep sleep time from either a MQTT message or the state of a sensor. In my case I an Automation in Home Assistant to check values and then send a message that is retained on the MQTT server and picked up by the ESP when it wakes up.
This way I can check for instance each night if the temperatur outside is low and I want to preserve battery during the night and send the state a litte less often.
Here is an example:
substitutions:
devicename: wemo…