Add selectors to Timer service definitions (#46744)

This commit is contained in:
Franck Nijhof 2021-02-18 16:54:20 +01:00 committed by GitHub
parent 4b6b03e33e
commit a5ac338c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,36 +1,24 @@
# Describes the format for available timer services
start:
description: Start a timer.
description: Start a timer
target:
fields:
entity_id:
description: Entity id of the timer to start. [optional]
example: "timer.timer0"
duration:
description: Duration the timer requires to finish. [optional]
default: 0
example: "00:01:00 or 60"
selector:
text:
pause:
description: Pause a timer.
fields:
entity_id:
description: Entity id of the timer to pause. [optional]
example: "timer.timer0"
description: Pause a timer
target:
cancel:
description: Cancel a timer.
fields:
entity_id:
description: Entity id of the timer to cancel. [optional]
example: "timer.timer0"
description: Cancel a timer
target:
finish:
description: Finish a timer.
fields:
entity_id:
description: Entity id of the timer to finish. [optional]
example: "timer.timer0"
description: Finish a timer
target: