mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Document the changes in timer (#7925)
* Document the changes in timerrelated to home-assistant/home-assistant#19516 * 📝 Tweaks
This commit is contained in:
parent
c7a55ed519
commit
b88d70dd3e
@ -15,7 +15,7 @@ ha_qa_scale: internal
|
||||
|
||||
The `timer` component aims to simplify automations based on (dynamic) durations.
|
||||
|
||||
When a timer finishes or gets canceled the corresponding events are fired. This allows you to differentiate if a timer has switched from `active` to `idle` because the given duration has elapsed or it has been canceled. To control timers in your automations you can use the services mentioned below. When calling the `start` service on a timer that is already running, it resets the duration it will need to finish and restart the timer without triggering any events. This for example makes it easy to create timed lights that get triggered by motion.
|
||||
When a timer finishes or gets canceled the corresponding events are fired. This allows you to differentiate if a timer has switched from `active` to `idle` because the given duration has elapsed or it has been canceled. To control timers in your automations you can use the services mentioned below. When calling the `start` service on a timer that is already running, it resets the duration it will need to finish and restart the timer without triggering a canceled or finished event. This, for example, makes it easy to create timed lights that get triggered by motion. Starting a timer triggers a started event unless the timer is paused, in that case, it triggers a restarted event.
|
||||
|
||||
<p class='note warning'>
|
||||
With the current implementation timers don't persist over restarts. After a restart they will be idle again, together with their initial configuration.
|
||||
@ -60,7 +60,10 @@ Pick an icon that you can find on [materialdesignicons.com](https://materialdesi
|
||||
| Event | Description |
|
||||
| --------------- | ----------- |
|
||||
| timer.cancelled | Fired when a timer has been canceled |
|
||||
| timer.finished | Fired when a timer has completed |
|
||||
| timer.finished | Fired when a timer has completed |
|
||||
| timer.started | Fired when a timer has been started|
|
||||
| timer.restarted | Fired when a timer has been restarted |
|
||||
| timer.paused | Fired when a timer has been paused |
|
||||
|
||||
## {% linkable_title Services %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user