mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[template/binary_sensor] Implement condition: option as alternative to lambda. (#7561)
				
					
				
			This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user