mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Add selectors to Counter service definitions (#46633)
This commit is contained in:
parent
4083b90138
commit
82934b31f8
@ -1,41 +1,63 @@
|
|||||||
# Describes the format for available counter services
|
# Describes the format for available counter services
|
||||||
|
|
||||||
decrement:
|
decrement:
|
||||||
description: Decrement a counter.
|
description: Decrement a counter
|
||||||
fields:
|
target:
|
||||||
entity_id:
|
|
||||||
description: Entity id of the counter to decrement.
|
|
||||||
example: "counter.count0"
|
|
||||||
increment:
|
increment:
|
||||||
description: Increment a counter.
|
description: Increment a counter
|
||||||
fields:
|
target:
|
||||||
entity_id:
|
|
||||||
description: Entity id of the counter to increment.
|
|
||||||
example: "counter.count0"
|
|
||||||
reset:
|
reset:
|
||||||
description: Reset a counter.
|
description: Reset a counter
|
||||||
fields:
|
target:
|
||||||
entity_id:
|
|
||||||
description: Entity id of the counter to reset.
|
|
||||||
example: "counter.count0"
|
|
||||||
configure:
|
configure:
|
||||||
description: Change counter parameters
|
description: Change counter parameters
|
||||||
|
target:
|
||||||
fields:
|
fields:
|
||||||
entity_id:
|
|
||||||
description: Entity id of the counter to change.
|
|
||||||
example: "counter.count0"
|
|
||||||
minimum:
|
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
|
example: 0
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: -9223372036854775807
|
||||||
|
max: 9223372036854775807
|
||||||
|
mode: box
|
||||||
maximum:
|
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
|
example: 100
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: -9223372036854775807
|
||||||
|
max: 9223372036854775807
|
||||||
|
mode: box
|
||||||
step:
|
step:
|
||||||
description: New value for step
|
name: Step
|
||||||
|
description: New value for step.
|
||||||
example: 2
|
example: 2
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 1
|
||||||
|
max: 9223372036854775807
|
||||||
|
mode: box
|
||||||
initial:
|
initial:
|
||||||
description: New value for initial
|
name: Initial
|
||||||
|
description: New value for initial.
|
||||||
example: 6
|
example: 6
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 0
|
||||||
|
max: 9223372036854775807
|
||||||
|
mode: box
|
||||||
value:
|
value:
|
||||||
description: New state value
|
name: Value
|
||||||
|
description: New state value.
|
||||||
example: 3
|
example: 3
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 0
|
||||||
|
max: 9223372036854775807
|
||||||
|
mode: box
|
||||||
|
Loading…
x
Reference in New Issue
Block a user