diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 08029c6ce60..f9e97cd6d96 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -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.