mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 11:56:50 +00:00
Update numeric_state trigger documentation (#16171)
This commit is contained in:
parent
3b681ba22d
commit
f08a5ef3d4
@ -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).
|
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>
|
</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:
|
The `for:` can also be specified as `HH:MM:SS` like this:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user