mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Add select selector for blueprints (#16383)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
2289eb85f7
commit
d8332c545e
@ -22,6 +22,7 @@ The following selectors are currently available:
|
|||||||
- [Entity selector](#entity-selector)
|
- [Entity selector](#entity-selector)
|
||||||
- [Number selector](#number-selector)
|
- [Number selector](#number-selector)
|
||||||
- [Object selector](#object-selector)
|
- [Object selector](#object-selector)
|
||||||
|
- [Select selector](#select-selector)
|
||||||
- [Target selector](#target-selector)
|
- [Target selector](#target-selector)
|
||||||
- [Text selector](#text-selector)
|
- [Text selector](#text-selector)
|
||||||
- [Time selector](#time-selector)
|
- [Time selector](#time-selector)
|
||||||
@ -381,6 +382,29 @@ This selector does not have any other options; therefore, it only has its key.
|
|||||||
object:
|
object:
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Select selector
|
||||||
|
|
||||||
|
The select selector shows a list of available options from which the user can choose. The value of the input contains the value of the selected option. Only a single option can be selected at a time.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The selector requires a list of options that the user can choose from.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
select:
|
||||||
|
options:
|
||||||
|
- Red
|
||||||
|
- Green
|
||||||
|
- Blue
|
||||||
|
```
|
||||||
|
|
||||||
|
{% configuration select %}
|
||||||
|
options:
|
||||||
|
description: List of options that the user can choose from.
|
||||||
|
type: list
|
||||||
|
required: true
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Target selector
|
## Target selector
|
||||||
|
|
||||||
The target selector is a rather special selector, allowing the user to selector
|
The target selector is a rather special selector, allowing the user to selector
|
||||||
|
BIN
source/images/blueprints/selector-select.png
Normal file
BIN
source/images/blueprints/selector-select.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
Loading…
x
Reference in New Issue
Block a user