Move note so it better aligns with the example code it references (#36062)

This commit is contained in:
TheGroundZero 2024-12-01 21:49:12 +01:00 committed by GitHub
parent 9452ab654c
commit 54b5fc9726
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,6 +241,11 @@ automation:
{% endraw %} {% 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. When the `attribute` option is specified the trigger is compared to the given `attribute` instead of the state of the entity.
{% raw %} {% raw %}
@ -288,11 +293,6 @@ automation:
{% endraw %} {% 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 Number helpers (`input_number` entities), `number`, `sensor`, and `zone` entities
that contain a numeric value, can be used in the `above` and `below` thresholds. 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: However, the comparison will only be made when the entity specified in the trigger is updated. This would look like: