Automatically Opening Garage Door with ESP32

Hey everyone, I wanted to share a fun project I’ve been working on to automate my garage door opening. It’s been a great way to combine some DIY tech with smart home functionality!

The idea is pretty straightforward: when I pull into my driveway, the garage door should automatically open. I’ve set this up using an ESP32 module connected to my car’s USB port and OpenHAB for the automation logic. Here’s how it works:

  1. ESP32 Setup: I programmed the ESP32 to send its uptime over MQTT once it connects to my home network. This uptime acts as a signal that my car is nearby.

  2. OpenHAB Rule: I created a rule in OpenHAB that checks if the car’s uptime is above 15 minutes, ensuring the car has been parked for long enough. It also verifies that the garage door is closed and hasn’t been opened recently to prevent any accidental activations.

  3. Garage Door Activation: When all conditions are met, the garage door opens up automatically. I’ve also added a voice announcement to let me know the door is opening.

This setup has been working perfectly for me, and I love how seamless it is. It’s a simple project but makes daily life so much more convenient!

If anyone has questions or suggestions for improvement, I’d love to hear them. Maybe someone can think of additional features or tweaks to make it even better. Happy tinkering! :rocket: