Add selectors to Counter service definitions (#46633)

This commit is contained in:
Franck Nijhof 2021-02-18 12:59:29 +01:00 committed by GitHub
parent 4083b90138
commit 82934b31f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +1,63 @@
# Describes the format for available counter services
decrement:
description: Decrement a counter.
fields:
entity_id:
description: Entity id of the counter to decrement.
example: "counter.count0"
description: Decrement a counter
target:
increment:
description: Increment a counter.
fields:
entity_id:
description: Entity id of the counter to increment.
example: "counter.count0"
description: Increment a counter
target:
reset:
description: Reset a counter.
fields:
entity_id:
description: Entity id of the counter to reset.
example: "counter.count0"
description: Reset a counter
target:
configure:
description: Change counter parameters
target:
fields:
entity_id:
description: Entity id of the counter to change.
example: "counter.count0"
minimum:
description: New minimum value for the counter or None to remove minimum
name: Minimum
description: New minimum value for the counter or None to remove minimum.
example: 0
selector:
number:
min: -9223372036854775807
max: 9223372036854775807
mode: box
maximum:
description: New maximum value for the counter or None to remove maximum
name: Maximum
description: New maximum value for the counter or None to remove maximum.
example: 100
selector:
number:
min: -9223372036854775807
max: 9223372036854775807
mode: box
step:
description: New value for step
name: Step
description: New value for step.
example: 2
selector:
number:
min: 1
max: 9223372036854775807
mode: box
initial:
description: New value for initial
name: Initial
description: New value for initial.
example: 6
selector:
number:
min: 0
max: 9223372036854775807
mode: box
value:
description: New state value
name: Value
description: New state value.
example: 3
selector:
number:
min: 0
max: 9223372036854775807
mode: box