Add condition selector for blueprint (#28184)

This commit is contained in:
Paul Bottein 2023-07-12 17:50:05 +02:00 committed by GitHub
parent 1c2168d6ce
commit 5b0c54b6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -24,6 +24,7 @@ The following selectors are currently available:
- [Backup location selector](#backup-location-selector)
- [Boolean selector](#boolean-selector)
- [Color temperature selector](#color-temperature-selector)
- [Condition selector](#condition-selector)
- [Config entry selector](#config-entry-selector)
- [Constant selector](#constant-selector)
- [Conversation agent selector](#conversation-agent-selector)
@ -327,6 +328,29 @@ max_mireds:
The output of this selector is the number of mired selected, for example, `243`.
## Condition selector
The condition selector allows the user to input one or more conditions.
On the user interface, the condition part of the automation editor will be shown.
The value of the input will contain a list of conditions.
![Screenshot of an condition selector](/images/blueprints/selector-condition.png)
This selector does not have any other options; therefore, it only has its key.
```yaml
condition:
```
The output of this selector is a list of conditions. For example:
```yaml
# Example Condition selector output result
- condition: numeric_state
entity_id: "sensor.outside_temperature"
below: 20
```
## Config entry selector
The config entry selector allows the user to select an integration

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB