From 7fd75081feecbc4c009c7102d0812819b661c661 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Mon, 31 Aug 2020 16:32:27 -0400 Subject: [PATCH] Include new `attribute` parameter for Numeric State triggers in automation docs (#14361) Co-authored-by: Zack Arnett --- source/_docs/automation/trigger.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 866b214c00d..b48c2b36577 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -56,7 +56,7 @@ automation: ### Numeric state trigger -Fires when numeric value of an entity's state crosses a given threshold. On state change of a specified entity, attempts to parse the state as a number and fires if 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) 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. {% raw %} @@ -70,8 +70,9 @@ automation: # At least one of the following required above: 17 below: 25 - - # If given, will trigger when condition has been for X time, can also use days and milliseconds. + # If given, will trigger when the value of the given attribute for the given entity changes + attribute: attribute_name + # If given, will trigger when the condition has been true for X time; you can also use days and milliseconds. for: hours: 1 minutes: 10