mirror of
https://github.com/esphome/esphome.git
synced 2026-10-18 04:02:54 +00:00
[sensor][number] Test in_range with only above, only below and both bounds
This commit is contained in:
@@ -76,6 +76,38 @@ esphome:
|
||||
date: "2021-01-01"
|
||||
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
id: template_sensor_above
|
||||
condition:
|
||||
sensor.in_range:
|
||||
id: template_template_sens
|
||||
above: 10.0
|
||||
- platform: template
|
||||
id: template_sensor_between
|
||||
condition:
|
||||
sensor.in_range:
|
||||
id: template_template_sens
|
||||
above: 10.0
|
||||
below: 30.0
|
||||
- platform: template
|
||||
id: template_number_above
|
||||
condition:
|
||||
number.in_range:
|
||||
id: template_number
|
||||
above: 10.0
|
||||
- platform: template
|
||||
id: template_number_below
|
||||
condition:
|
||||
number.in_range:
|
||||
id: template_number
|
||||
below: 90.0
|
||||
- platform: template
|
||||
id: template_number_between
|
||||
condition:
|
||||
number.in_range:
|
||||
id: template_number
|
||||
above: 10.0
|
||||
below: 90.0
|
||||
- platform: template
|
||||
id: template_some_binary_sensor
|
||||
name: "Garage Door Open"
|
||||
|
||||
Reference in New Issue
Block a user