1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

[template/binary_sensor] Implement condition: option as alternative to lambda. (#7561)

This commit is contained in:
Clyde Stubbs
2024-10-09 12:49:33 +11:00
committed by GitHub
parent fc97a6d1e3
commit 66f500e594
2 changed files with 26 additions and 6 deletions

View File

@@ -46,6 +46,13 @@ binary_sensor:
// Garage Door is closed.
return false;
}
- platform: template
id: other_binary_sensor
name: "Garage Door Closed"
condition:
sensor.in_range:
id: template_sens
below: 30.0
output:
- platform: template