Deprecate counter.configure service (#27483)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-05-24 10:26:40 +02:00 committed by GitHub
parent 01a129da91
commit 0e02226706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ If `restore` is set to `true`, the `initial` value will only be used when no pre
## Services
Available services: `increment`, `decrement`, `reset`, `set_value` and `configure`.
Available services: `increment`, `decrement`, `reset`, and `set_value`.
### Service `counter.increment`
@ -120,19 +120,6 @@ This service allows setting the counter to a specific value.
| `entity_id` | no | Name of the entity to take action, e.g., `counter.my_custom_counter`. |
| `value` | yes | Set the counter to the given value. |
### Service `counter.configure`
With this service the properties of the counter can be changed while running.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | no | Name of the entity to take action, e.g., `counter.my_custom_counter`. |
| `minimum` | yes | Set new value for minimum. None disables minimum. |
| `maximum` | yes | Set new value for maximum. None disables maximum. |
| `step` | yes | Set new value for step. |
| `initial` | yes | Set new value for initial. |
| `value` | yes | Set the counters state to the given value. |
### Use the service
Select the **Services** tab from within **Developer Tools**. Choose **counter** from the list of **Domains**, select the **Service**, enter something like the sample below into the **Service Data** field, and hit **CALL SERVICE**.