Revert "Timer start service remove duration parameter (#28754)" (#28783)

This reverts commit 48f8de4237d238dcff69f37819755c826a3a6cb9.
This commit is contained in:
Erik Montnemery 2023-09-04 20:17:46 +02:00 committed by GitHub
parent 4df3487232
commit 3bb5658b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,12 +91,13 @@ Pick an icon from [Material Design Icons](https://pictogrammers.com/library/mdi/
### Service `timer.start`
Starts or restarts a timer. It will either restart with its initial value, or continue a paused timer with the remaining duration.
Starts or restarts a timer with the provided duration. If no duration is given, it will either restart with its initial value, or continue a paused timer with the remaining duration. If a new duration is provided, this will be the new default for the timer until Home Assistant is restarted (which loads your default values). The duration can be specified as a number of seconds or the easier to read `01:23:45` format.
You can also use `entity_id: all` and all active timers will be started.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `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`