A HomeKit-enabled ESP32 project to control relays with physical buttons using HomeSpan.
- HomeKit-compatible via HomeSpan
- Momentary button toggles each relay (on/off)
- State retained in HomeKit
- GPIO-safe pin selection for ESP32 DevKit v1
Component | GPIO |
---|---|
Relay 1 | 26 |
Button 1 | 32 |
Relay 2 | 27 |
Button 2 | 33 |
Status LED | 13 |
Control Pin | 12 |
The following is the wiring diagram:
- @HomeSpan for ESP32 HomeKit firmware GitHub link
- @Wokwi for the wiring diagram website