Numeric state condition can also accept input_number entity ID (#14403)

This commit is contained in:
Franck Nijhof 2020-09-06 20:29:32 +02:00 committed by GitHub
parent f8941d1660
commit 695f81fb69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,18 @@ condition:
below: 25 below: 25
``` ```
Number helpers (`input_number` entities) can be used in the `above` and `below`
options to make the condition more dynamic.
```yaml
condition:
condition: numeric_state
entity_id: climate.living_room_thermostat
attribute: temperature
above: input_number.temperature_threshold_low
below: input_number.temperature_threshold_high
```
## State condition ## State condition
Tests if an entity is a specified state. Tests if an entity is a specified state.