nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
655 stars 41 forks source link

Countdown Timer #171

Closed Andrewpaps closed 2 years ago

Andrewpaps commented 2 years ago

Please add the ability to create a countdown timer in which to specifiy an amount of time before an action is completed as opposed to being executed upon reaching a specific time of day.

Example: Turn off (action) air-conditioner (device/entity) in 00:45 or 45 minutes (time until).

The closest thing I can find to this in the current implementation is the Sunrise/Set off-set. Aplogies if it is already possible. Thanks in advance.

nielsfaber commented 2 years ago

Scheduler only supports fixed time, not a duration. I cannot change this, it is a lot of work to make..

Andrewpaps commented 2 years ago

That is fair enough. You could potentially work around that problem by simply implementing a duration calculator in the GUI that simply calculates what time a given duration expires at.

Eg. (current time) + ("timer") = (fixed time) or 05:00 + 00:45 = 05:45

This would give the illusion of a timer without actually having to count duration. Kind of like what the sunset/sunrise offset already does but instead beginning from current local time.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days