[sensor][number] Test in_range with only above, only below and both bounds

This commit is contained in:
J. Nick Koston
2026-10-15 14:03:09 -10:00
parent 6817960365
commit 20d0ab9ed0
@@ -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"