From 54b5fc9726335644c8a89681a2baaf7d9db74445 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sun, 1 Dec 2024 21:49:12 +0100 Subject: [PATCH] Move note so it better aligns with the example code it references (#36062) --- source/_docs/automation/trigger.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 58efcf35f8e..97c7f4b82c8 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -241,6 +241,11 @@ automation: {% endraw %} +{% note %} +Listing above and below together means the numeric_state has to be between the two values. +In the example above, the trigger would fire a single time if a numeric_state goes into the 17.1-24.9 range (above 17 and below 25). It will only fire again, once it has left the defined range and enters it again. +{% endnote %} + When the `attribute` option is specified the trigger is compared to the given `attribute` instead of the state of the entity. {% raw %} @@ -288,11 +293,6 @@ automation: {% endraw %} -{% note %} -Listing above and below together means the numeric_state has to be between the two values. -In the example above, the trigger would fire a single time if a numeric_state goes into the 17.1-24.9 range (above 17 and below 25). It will only fire again, once it has left the defined range and enters it again. -{% endnote %} - Number helpers (`input_number` entities), `number`, `sensor`, and `zone` entities that contain a numeric value, can be used in the `above` and `below` thresholds. However, the comparison will only be made when the entity specified in the trigger is updated. This would look like: