Update numeric_state trigger documentation (#16171)

This commit is contained in:
Alexei Chetroi 2021-01-13 10:20:56 -05:00 committed by GitHub
parent 3b681ba22d
commit f08a5ef3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,19 @@ Listing above and below together means the numeric_state has to be between the t
In the example above, the trigger would fire if a numeric_state goes to 17.1-24.9 (from strict above 17 and strict below 25).
</div>
Number helpers (`input_number` entities) can be used in the `above` and `below` thresholds, making
the trigger more dynamic, like:
```yaml
automation:
trigger:
platform: numeric_state
entity_id: sensor.temperature
# input_number entity id can be specified for above and/or below thresholds
above: input_number.temperature_threshold_high
below: input_number.temperature_threshold_low
```
The `for:` can also be specified as `HH:MM:SS` like this:
{% raw %}