Add documentation for new input_select functionality (#15568)

Accompanies https://github.com/home-assistant/core/pull/42968
This commit is contained in:
Lars Marowsky-Brée 2021-01-27 11:18:22 +01:00 committed by GitHub
parent 301fe23ef7
commit 24b308e548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,10 +80,26 @@ This integration provides three services to modify the state of the `input_selec
| ------- | ---- | ----------- |
| `select_option` | `option` | This can be used to select a specific option.
| `set_options` | `options`<br>`entity_id(s)` | Set the options for specific `input_select` entities.
| `select_previous` | | Select the previous option.
| `select_next` | | Select the next option.
| `select_first` | | Select the first option.
| `select_last` | | Select the last option.
| `reload` | | Reload `input_select` configuration |
#### Service `input_select.select_next`
Select the next option.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `cycle` | yes | Whether to cycle to the first value after the last. Default: `true`
#### Service `input_select.select_previous`
Select the previous option.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `cycle` | yes | Whether to cycle to the last value before the first. Default: `true`
### Scenes
Specifying a target option in a [Scene](/integrations/scene/) is simple: