mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user