mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Allow any entity to match state condition (#22321)
This commit is contained in:
parent
bfe24c44e7
commit
91f28433ab
@ -136,7 +136,7 @@ condition:
|
||||
{% endraw %}
|
||||
|
||||
It is also possible to test the condition against multiple entities at once.
|
||||
The condition will pass if all entities match the thresholds.
|
||||
The condition will pass if **all** entities match the thresholds.
|
||||
|
||||
```yaml
|
||||
condition:
|
||||
@ -190,7 +190,7 @@ condition:
|
||||
```
|
||||
|
||||
It is also possible to test the condition against multiple entities at once.
|
||||
The condition will pass if all entities match the state.
|
||||
The condition will pass if **all** entities match the state.
|
||||
|
||||
```yaml
|
||||
condition:
|
||||
@ -201,6 +201,19 @@ condition:
|
||||
state: "on"
|
||||
```
|
||||
|
||||
Instead of matching all, it is also possible if one of the entities matches.
|
||||
In the following example the condition will pass if **any** entities match the state.
|
||||
|
||||
```yaml
|
||||
condition:
|
||||
condition: state
|
||||
entity_id:
|
||||
- binary_sensor.motion_sensor_left
|
||||
- binary_sensor.motion_sensor_right
|
||||
match: any
|
||||
state: "on"
|
||||
```
|
||||
|
||||
Testing if an entity is matching a set of possible conditions;
|
||||
The condition will pass if the entity matches one of the states given.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user