State condition can also accept an input_* Entity ID as state value (#14412)

This commit is contained in:
Franck Nijhof 2020-09-07 00:36:27 +02:00 committed by GitHub
parent 16b2cda659
commit 4f7216c7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,17 @@ condition:
state: heat state: heat
``` ```
Finally, the `state` option accepts helper entities (also known as `input_*`
entities). The condition will pass if the state of the entity matches the state
of the given helper entity.
```yaml
condition:
condition: state
entity_id: alarm_control_panel.home
state: input_select.guest_mode
```
### Sun condition ### Sun condition
#### Sun state condition #### Sun state condition