Add trigger selector for blueprint (#29598)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Paul Bottein 2023-11-03 09:12:16 +01:00 committed by GitHub
parent 3c32a2a813
commit c7f6ae7b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -52,6 +52,7 @@ The following selectors are currently available:
- [Text selector](#text-selector)
- [Theme selector](#theme-selector)
- [Time selector](#time-selector)
- [Trigger selector](#trigger-selector)
Interactive demos of each of these selectors can be found on the
[Home Assistant Design portal](https://design.home-assistant.io/#components/ha-selector).
@ -1292,3 +1293,26 @@ time:
The output of this selector will contain the time in 24-hour format,
for example, `23:59:59`.
## Trigger selector
The triggers selector allows the user to input one or more triggers.
On the user interface, the trigger part of the automation editor is shown.
The value of the input contains a list of triggers.
![Screenshot of an trigger selector](/images/blueprints/selector-trigger.png)
This selector does not have any other options; therefore, it only has its key.
```yaml
trigger:
```
The output of this selector is a list of triggers. For example:
```yaml
# Example trigger selector output result
- platform: numeric_state
entity_id: "sensor.outside_temperature"
below: 20
```∏

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB