Skip to content

Commit c7f6ae7

Browse files
piitayac0ffeeca7
andauthored
Add trigger selector for blueprint (home-assistant#29598)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
1 parent 3c32a2a commit c7f6ae7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

source/_docs/blueprint/selectors.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The following selectors are currently available:
5252
- [Text selector](#text-selector)
5353
- [Theme selector](#theme-selector)
5454
- [Time selector](#time-selector)
55+
- [Trigger selector](#trigger-selector)
5556

5657
Interactive demos of each of these selectors can be found on the
5758
[Home Assistant Design portal](https://design.home-assistant.io/#components/ha-selector).
@@ -1292,3 +1293,26 @@ time:
12921293

12931294
The output of this selector will contain the time in 24-hour format,
12941295
for example, `23:59:59`.
1296+
1297+
## Trigger selector
1298+
1299+
The triggers selector allows the user to input one or more triggers.
1300+
On the user interface, the trigger part of the automation editor is shown.
1301+
The value of the input contains a list of triggers.
1302+
1303+
![Screenshot of an trigger selector](/images/blueprints/selector-trigger.png)
1304+
1305+
This selector does not have any other options; therefore, it only has its key.
1306+
1307+
```yaml
1308+
trigger:
1309+
```
1310+
1311+
The output of this selector is a list of triggers. For example:
1312+
1313+
```yaml
1314+
# Example trigger selector output result
1315+
- platform: numeric_state
1316+
entity_id: "sensor.outside_temperature"
1317+
below: 20
1318+
```
17.4 KB
Loading

0 commit comments

Comments
 (0)