mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Add Template selector (#22421)
This commit is contained in:
parent
9f04669f37
commit
dc09e959bf
@ -931,6 +931,21 @@ target:
|
|||||||
model: TRADFRI remote control
|
model: TRADFRI remote control
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Template selector
|
||||||
|
|
||||||
|
The template selector can be used to input a Jinja2 template. This is useful
|
||||||
|
for allowing more advanced user-input that use Jinja2 templates.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
This selector does not have any other options; therefore, it only has its key.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
template:
|
||||||
|
```
|
||||||
|
|
||||||
|
The output of this selector is a template string.
|
||||||
|
|
||||||
## Text selector
|
## Text selector
|
||||||
|
|
||||||
The text selector can be used to input a text string. The value of the input will contain the selected text.
|
The text selector can be used to input a text string. The value of the input will contain the selected text.
|
||||||
|
BIN
source/images/blueprints/selector-template.png
Normal file
BIN
source/images/blueprints/selector-template.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user