Add change service to timer (#25446)

This commit is contained in:
G Johansson 2023-05-30 09:49:46 +02:00 committed by GitHub
parent 882270b61e
commit f2cd585da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,15 @@ You can also use `entity_id: all` and all active timers will be started.
| `entity_id` | no | Name of the entity to take action, e.g., `timer.timer0`. |
| `duration` | yes | Duration in seconds or `01:23:45` format until the timer finishes. |
### Service `timer.change`
Change an active timer. This changes the duration of the timer with the duration given. You can also use `entity_id: all` and all active timers will be changed.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | no | Name of the entity to take action, e.g., `timer.timer0`. |
| `duration` | no | Duration in seconds or `00:00:00` to add or subtract from the running timer. |
### Service `timer.pause`
Pause a running timer. This will retain the remaining duration for later continuation. You can also use `entity_id: all` and all active timers will be paused.