diff --git a/homeassistant/components/counter/services.yaml b/homeassistant/components/counter/services.yaml index 960424df0ca..16010f6e2f4 100644 --- a/homeassistant/components/counter/services.yaml +++ b/homeassistant/components/counter/services.yaml @@ -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