You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: automations/actions.rst
+15-7
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,11 @@ turns on a light for 5 seconds. Otherwise, the light is turned off immediately.
217
217
218
218
Configuration variables:
219
219
220
-
- **condition** (**Required**, :ref:`Condition <config-condition>`): The condition to check to determine which branch to take.
220
+
At least one of ``condition``, ``all`` or ``any`` must be provided.
221
+
222
+
- **condition** (*Optional*, :ref:`Condition <config-condition>`): The condition to check to determine which branch to take. If this is configured with a list of conditions then they must all be true for the condition to be true.
223
+
- **all** (*Optional*, :ref:`Condition <config-condition>`): Takes a list of conditions, all of which must be true (and is therefore equivalent to ``condition``.)
224
+
- **any** (*Optional*, :ref:`Condition <config-condition>`): Takes a list of conditions; if at least one is true, the condition will be true.
221
225
- **then** (*Optional*, :ref:`Action <config-action>`): The action to perform if the condition evaluates to true.
222
226
Defaults to doing nothing.
223
227
- **else** (*Optional*, :ref:`Action <config-action>`): The action to perform if the condition evaluates to false.
@@ -406,14 +410,17 @@ Common Conditions
406
410
"Conditions" provide a way for your device to take an action only when a specific (set of) condition(s) is satisfied.
0 commit comments