Added a note for crossing thresholds (#26045)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Dennis Gaida 2023-03-06 21:09:57 +01:00 committed by GitHub
parent c785a09d40
commit c04b8fe024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,12 @@ automation:
## Numeric state trigger
Fires when the numeric value of an entity's state (or attribute's value if using the `attribute` property, or the calculated value if using the `value_template` property) **crosses** (and only when crossing) a given threshold. On state change of a specified entity, attempts to parse the state as a number and fires if the value is changing from above to below or from below to above the given threshold.
Fires when the numeric value of an entity's state (or attribute's value if using the `attribute` property, or the calculated value if using the `value_template` property) **crosses** a given threshold. On state change of a specified entity, attempts to parse the state as a number and fires if the value is changing from above to below or from below to above the given threshold.
<div class='note'>
Crossing the threshold means that the trigger only fires if the state wasn't previously within the threshold.
If the current state of your entity is `50` and you set the threshold to `below: 75`, the trigger would not fire if the state changed to e.g. `49` or `72` because the threshold was never crossed. The state would first have to change to e.g. `76` and then to e.g. `74` for the trigger to fire.
</div>
{% raw %}