ESP32 HomeKit remote gate control project

Hi,

I want to make a HomeKit device for controlling my driveway gates. For this project I want to use the ESP32 and a RFM69HW 868Mhz transceiver. The Idea is to:

  1. Open and close gates from my phone using HomeKit
  2. Get the temperature from the ESP32
  3. Receive data from the remote control so that I can track the state of the gate (are they open or closed)
  4. Get it to work over WiFi
  5. Program the ESP32 based on the gate remote signal

Stuff I ordered (It'll probably take like 32-60 days before I get it):

  • ESP32
  • RDM69HW (chosen this one due to my remotes frequency being 868Mhz)


My problem is that I'm a total beginner and don't know where to start in terms of coding. How do I start? How to read the HAP specification? How to implement it in ESP32? Any other suggestions? Thanks for any help in this field.


Link to reddit: https://www.reddit.com/r/esp32/comments/e1gy1o/esp32_homekit_remote_gate_control_project/?utm_source=share&utm_medium=web2x

Replies

Probably too late, but a port of Apple HomeKit ADK for ESP32 is now available here: https://github.com/espressif/esp-apple-homekit-adk

https://www.youtube.com/watch?v=CkCJESr2n-U you can see this video, it will help you how to use ESP32 for homekit.

I have done something similar and it was a pain and not super reliable. I ended up switching to using a homekit outlet (mine is a Wemo) and connecting a relay to that. Most gates open by closing a 24V ac circuit. So the relay is powered by a 5v wall wart plugged into the homekit outlet. The 24V ac line is normally open, when the homekit outlet comes on it powers the relay which closes the circuit and opens the gate. This works reliably and is homekit compatible without tweaks. Shortcuts and automations are easily added. The relay was about $1.00 and the Wemo homekit outlet about $10.