diff --git a/guides/automations.rst b/guides/automations.rst index 468a90f1e..f0c61f5f0 100644 --- a/guides/automations.rst +++ b/guides/automations.rst @@ -415,7 +415,7 @@ All Conditions -------------- - :ref:`lambda ` -- :ref:`and ` / :ref:`or ` / :ref:`not ` +- :ref:`and ` / :ref:`or ` / :ref:`xor ` / :ref:`not ` - :ref:`for ` - :ref:`binary_sensor.is_on ` / :ref:`binary_sensor.is_off ` - :ref:`switch.is_on ` / :ref:`switch.is_off ` @@ -501,10 +501,11 @@ and can be used to create conditional flow in actions. .. _and_condition: .. _or_condition: +.. _xor_condition: .. _not_condition: -``and`` / ``or`` / ``not`` Condition ------------------------------------- +``and`` / ``or`` / ``xor`` / ``not`` Condition +---------------------------------------------- Check a combination of conditions @@ -514,7 +515,7 @@ Check a combination of conditions then: - if: condition: - # Same syntax for and + # Same syntax for `and` as well as `xor` conditions or: - binary_sensor.is_on: some_binary_sensor - binary_sensor.is_on: other_binary_sensor