mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-27 05:03:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			345 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			345 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| esp32_touch:
 | |
|   setup_mode: false
 | |
|   iir_filter: 10ms
 | |
|   sleep_duration: 27ms
 | |
|   measurement_duration: 8ms
 | |
|   low_voltage_reference: 0.5V
 | |
|   high_voltage_reference: 2.7V
 | |
|   voltage_attenuation: 1.5V
 | |
| 
 | |
| binary_sensor:
 | |
|   - platform: esp32_touch
 | |
|     name: ESP32 Touch Pad
 | |
|     pin: ${pin}
 | |
|     threshold: 1000
 | |
|     on_press:
 | |
|       - logger.log: "I'm touched!"
 |