Automated Gate Update: Bluetooth Integration & Auto Open

April 9, 2025

In my last blog post, I shared my plans to automate my wooden gate using WiFi connectivity and a custom relay-controlled actuator, and I’m excited to report that the project has been a resounding success. The initial setup has reliably managed my gate, enabling my robotic lawn mower to operate on schedule without any manual intervention.

Project Success Recap

The original implementation, built around a WiFi-enabled microcontroller, has proven its reliability.

What’s New: Bluetooth Integration & Auto Open

With the basic automation in place, I’m now working to add Bluetooth functionality. My new update will introduce a togglable state called Auto Open with the following features:

  • Bluetooth Scanning: When Auto Open is enabled, the system continuously scans for a specific Bluetooth beacon—my “navimo”. Once this beacon is detected within range, the gate opens automatically.
  • Timed Closure: To maintain security and energy efficiency, a five-minute timer starts as soon as the gate is open. If the Bluetooth connection is lost before this period expires, the system will automatically close the gate.
  • User Flexibility: The Auto Open state can be easily toggled on or off, allowing for flexible control depending on the situation.

This Bluetooth addition brings an extra layer of convenience and responsiveness to the overall gate automation system, making it even more user-friendly and adaptable.

Streamlining the Codebase: Removing Home Dkit Dependency

During development, I decided to remove the Home Dkit dependency. Although the library provided certain helpful features, maintaining external dependencies over time can lead to unwanted technical debt. By opting for a leaner, custom solution:

  • Reduced Technical Debt: Eliminating the library simplifies the code, making it easier to maintain and update in the long run.
  • Customized Functionality: A bespoke integration allows for tailored behavior that perfectly matches the project’s requirements without additional abstraction layers.
  • Enhanced Control: This change not only streamlines the development process but also provides better control over the system’s performance and debugging.

Looking Ahead

The new Bluetooth integration and Auto Open feature mark a significant improvement for the automated gate project. The system is now more dynamic, able to react to proximity with the navimo while still ensuring the gate remains secure with its timely closure mechanism.

I'm eager to see how these enhancements perform in real-world conditions and to continue expanding the smart home ecosystem with further integrations and refinements. For those interested in the technical details or keen to follow along with the project developments, check out the project repository on GitHub.

Disclaimer: The views and opinions expressed in this blog post are solely my own and do not reflect the views of my employer, colleagues, or any affiliated organization.