Include new attribute parameter for Numeric State triggers in automation docs (#14361)

Co-authored-by: Zack Arnett <arnett.zackary@gmail.com>
This commit is contained in:
Raman Gupta 2020-08-31 16:32:27 -04:00 committed by GitHub
parent 22ad55ca33
commit 7fd75081fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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