mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Allow number & sensors references in numeric_state triggers/conditions (#18084)
This commit is contained in:
parent
7e67df43c8
commit
aa08471668
@ -182,17 +182,17 @@ Listing above and below together means the numeric_state has to be between the t
|
||||
In the example above, the trigger would fire a single time if a numeric_state goes into the 17.1-24.9 range (from 17 and below or 25 and above). It will only fire again, once it has left the defined range and enters it again.
|
||||
</div>
|
||||
|
||||
Number helpers (`input_number` entities) can be used in the `above` and `below` thresholds, making
|
||||
the trigger more dynamic, like:
|
||||
Number helpers (`input_number` entities), `number` and `sensor` entities that
|
||||
contain a numeric value, an 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
|
||||
entity_id: sensor.outside_temperature
|
||||
# Other entity ids can be specified for above and/or below thresholds
|
||||
above: sensor.inside_temperature
|
||||
```
|
||||
|
||||
The `for:` can also be specified as `HH:MM:SS` like this:
|
||||
|
@ -154,7 +154,8 @@ condition:
|
||||
below: 25
|
||||
```
|
||||
|
||||
Number helpers (`input_number` entities) can be used in the `above` and `below`
|
||||
Number helpers (`input_number` entities), `number` and `sensor` entities that
|
||||
contain a numeric value, can be used in the `above` and `below`
|
||||
options to make the condition more dynamic.
|
||||
|
||||
```yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user