Closed givanildo closed 6 years ago
Hi givanildo. I created a fork of this project with a touch switch example. It lets you use the ESP32 as a physical HomeKit switch to control automations, rather than turning on/off an LED on the device.
The idea is to call the lead_write function (I renamed to switch_write) when you detect a change on your input. In my case I used the touch sensor on GPIO4, but you could easily modify it to use a push button. Check it out here in the touch-switch
example folder
Thank you ! I appreciate your job! Thanks for answer my question!
2018-07-12 19:17 GMT-03:00 Simon notifications@github.com:
Hi givanildo. I created a fork of this project with a touch switch example. It lets you use the ESP32 as a physical HomeKit switch to control automations, rather than turning on/off an LED on the device.
The idea is to call the lead_write function (I renamed to switch_write) when you detect a change on your input. In my case I used the touch sensor on GPIO4, but you could easily modify it to use a push button. Check it out here https://github.com/wumbo/esp32-homekit-touch-switch in the touch-switch example folder
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/younghyunjo/esp32-homekit/issues/22#issuecomment-404668112, or mute the thread https://github.com/notifications/unsubscribe-auth/AHpKiEeF4vDAzw-fFQdCMfc0uuuRXlnrks5uF8rmgaJpZM4UsoCv .
-- Att.: Givanildo Brunetta fone 66 8111 4710 66 9955 2704
@wumbo
Thanks for answer the question :+1:
dear younghyunjo !!! congratulations for yuor job! sorry about my bad English.... May you help me insert in the code a push button for physic(local PULL_UP) change the switch ? i don't know how to do this.