From 985c08a8b7317368a831f9294e08c09711c226bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Sun, 26 May 2024 13:00:24 +0200 Subject: [PATCH] Below/above is lower/higher than, *equal excluded* (#32945) --- source/_docs/automation/trigger.markdown | 2 +- source/_docs/scripts/conditions.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 9f7dc28a1f1..e37d123b5a8 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -215,7 +215,7 @@ 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** 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 (equal excluded). 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 (equal excluded).
Crossing the threshold means that the trigger only fires if the state wasn't previously within the threshold. diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 2860510c95a..5af4806f4f6 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -165,7 +165,7 @@ condition: ## Numeric state condition -This type of condition attempts to parse the state of the specified entity or the attribute of an entity as a number, and triggers if the value matches the thresholds. +This type of condition attempts to parse the state of the specified entity or the attribute of an entity as a number, and triggers if the value matches the thresholds (strictly below/above, so equal excluded). If both `below` and `above` are specified, both tests have to pass.