Files
hassos_config/esphome/sensors/touch_gt911
2024-07-18 09:12:31 +02:00

14 lines
299 B
Plaintext

---
touchscreen:
platform: gt911
i2c_id: ${touch_bus}
id: gt911_touchscreen
interrupt_pin: ${touch_irq}
on_touch:
- then:
- logger.log:
format: Touch at (%d, %d)
args: [touch.x, touch.y]
- light.turn_on: led
- delay: 5s
- light.turn_off: led