hass-core/homeassistant/components/timer/services.yaml
G Johansson ddb9a6e33c
Add change service to timer (#84775)
* Add change service

* test subtract

* Test no change if timer not running

* Modify example

* Raise

* Finalize

* test event

* Fix tests

* Fix tracking time
2023-05-21 10:11:08 +02:00

50 lines
881 B
YAML

# Describes the format for available timer services
start:
name: Start
description: Start a timer
target:
entity:
domain: timer
fields:
duration:
description: Duration the timer requires to finish. [optional]
example: "00:01:00 or 60"
selector:
text:
pause:
name: Pause
description: Pause a timer.
target:
entity:
domain: timer
cancel:
name: Cancel
description: Cancel a timer.
target:
entity:
domain: timer
finish:
name: Finish
description: Finish a timer.
target:
entity:
domain: timer
change:
name: Change
description: Change a timer
target:
entity:
domain: timer
fields:
duration:
description: Duration to add or subtract to the running timer
default: 0
required: true
example: "00:01:00, 60 or -60"
selector:
text: