mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
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:
parent
22ad55ca33
commit
7fd75081fe
@ -56,7 +56,7 @@ automation:
|
|||||||
|
|
||||||
### Numeric state trigger
|
### 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 %}
|
{% raw %}
|
||||||
|
|
||||||
@ -70,8 +70,9 @@ automation:
|
|||||||
# At least one of the following required
|
# At least one of the following required
|
||||||
above: 17
|
above: 17
|
||||||
below: 25
|
below: 25
|
||||||
|
# If given, will trigger when the value of the given attribute for the given entity changes
|
||||||
# If given, will trigger when condition has been for X time, can also use days and milliseconds.
|
attribute: attribute_name
|
||||||
|
# If given, will trigger when the condition has been true for X time; you can also use days and milliseconds.
|
||||||
for:
|
for:
|
||||||
hours: 1
|
hours: 1
|
||||||
minutes: 10
|
minutes: 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user