Published On Nov 14, 2023
TTP223 Capacitive Touch Button
Parts Links
D1 Mini MCU https://www.aliexpress.us/item/225183...
Project Box https://www.amazon.com/gp/product/B0B...
TTP223 Capacitive Touch Switch Button https://www.amazon.com/dp/B07K72N79J?...
Parts List: https://www.canva.com/design/DAF0KTCq...
Wiring Diagram: https://www.canva.com/design/DAF0KkE4...
ESPHome code
binary_sensor:
platform: gpio
pin:
number: 33
mode:
input: true
name: "call help"
device_class: door
on_press:
homeassistant.service:
service: script.ReplaceWithScriptName
filters:
delayed_on: 10ms
Create a script in home assistant to do any automations you want when the button is press. In my code replace the words ReplaceWithScriptName with the name of your script.
Also replace the word door for the device_class name with one that matches what your using the touch button for. A list of what you can change it to can be found here https://developers.home-assistant.io/...