mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update input_select.markdown (#10795)
Adds documentation for improved scene support for input_select.
This commit is contained in:
parent
6a232dce58
commit
fc22f519f4
@ -77,17 +77,32 @@ This integrations provide three services to modify the state of the `input_selec
|
||||
|
||||
### Scenes
|
||||
|
||||
To specify a target option in a [Scene](/integrations/scene/) you have to specify the target as `option` attribute:
|
||||
Specifying a target option in a [Scene](/integrations/scene/) is simple:
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
scene:
|
||||
- name: Example1
|
||||
entities:
|
||||
input_select.who_cooks:
|
||||
option: Paulus
|
||||
input_select.who_cooks: Paulus
|
||||
```
|
||||
|
||||
The list of options can also be set in a [Scene](/integrations/scene). In that case, you also need to specify what the new state will be.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
scene:
|
||||
- name: Example2
|
||||
entities:
|
||||
input_select.who_cooks:
|
||||
options:
|
||||
- Alice
|
||||
- Bob
|
||||
- Paulus
|
||||
state: Bob
|
||||
```
|
||||
|
||||
|
||||
## Automation Examples
|
||||
|
||||
The following example shows the usage of the `input_select.select_option` service in an automation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user