Skip to content

Commit

Permalink
Move note so it better aligns with the example code it references (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGroundZero authored Dec 1, 2024
1 parent 9452ab6 commit 54b5fc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/_docs/automation/trigger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 54b5fc9

Please sign in to comment.