2017-11-05 12:51:52 +00:00
|
|
|
# Describes the format for available counter services
|
|
|
|
|
|
|
|
decrement:
|
|
|
|
description: Decrement a counter.
|
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Entity id of the counter to decrement.
|
2020-04-05 15:27:16 +00:00
|
|
|
example: "counter.count0"
|
2017-11-05 12:51:52 +00:00
|
|
|
increment:
|
|
|
|
description: Increment a counter.
|
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Entity id of the counter to increment.
|
2020-04-05 15:27:16 +00:00
|
|
|
example: "counter.count0"
|
2017-11-05 12:51:52 +00:00
|
|
|
reset:
|
|
|
|
description: Reset a counter.
|
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Entity id of the counter to reset.
|
2020-04-05 15:27:16 +00:00
|
|
|
example: "counter.count0"
|
2019-04-18 10:02:01 +00:00
|
|
|
configure:
|
|
|
|
description: Change counter parameters
|
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Entity id of the counter to change.
|
2020-04-05 15:27:16 +00:00
|
|
|
example: "counter.count0"
|
2019-04-18 10:02:01 +00:00
|
|
|
minimum:
|
|
|
|
description: New minimum value for the counter or None to remove minimum
|
|
|
|
example: 0
|
|
|
|
maximum:
|
|
|
|
description: New maximum value for the counter or None to remove maximum
|
|
|
|
example: 100
|
|
|
|
step:
|
|
|
|
description: New value for step
|
|
|
|
example: 2
|
2019-10-21 22:01:35 +00:00
|
|
|
initial:
|
|
|
|
description: New value for initial
|
|
|
|
example: 6
|
|
|
|
value:
|
|
|
|
description: New state value
|
|
|
|
example: 3
|