Files
esphome/tests/components/esp32_touch/common-variants.yaml
Jonathan Swoboda e65438b27c [esp32_touch] Support voltage_attenuation with new unified driver
The new touch_volt_lim_h_t enum combines high_voltage_reference and
voltage_attenuation into a single value. Map the two user-facing config
options to the correct combined enum using a lookup table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:49:20 -05:00

15 lines
298 B
YAML

esp32_touch:
setup_mode: false
sleep_duration: 27ms
measurement_duration: 8ms
low_voltage_reference: 0.5V
high_voltage_reference: 2.7V
binary_sensor:
- platform: esp32_touch
name: ESP32 Touch Pad
pin: ${pin}
threshold: 1000
on_press:
- logger.log: "I'm touched!"