esphome / esphome/feature-requests

Allow dynamic deep sleep run time like the set_sleep_duration

Open
#3,090 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I would like to be able set the deep sleep run duration dynamically like the "set_sleep_duration"

**Please describe your use case for this integration and alternatives you've tried:**

I have a battery powered sensor that wakes up every hour for 30 seconds to check for a calendar event.
If there is an event that day I turn on an indicator LED, in this state I sleep for 5 minutes and would like the run duration to be set to 1 minute, then when the calendar event is over (the next day) I want to set the run duration back to 30 seconds.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by locating the existing set_sleep_duration entry point and the deep-sleep run-duration handling, then determine how a duration can be changed for later wake cycles. Done means the sensor can use a one-minute run duration during an event and restore 30 seconds afterward.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.