homebridge-ratgdo
v3.2.0
Published
HomeKit integration using Ratgdo and Konnected devices for LiftMaster and Chamberlain garage door openers, without requiring myQ.
Maintainers
Readme
Homebridge Ratgdo
Ratgdo-enabled garage door opener support for Homebridge.
homebridge-ratgdo is a Homebridge plugin that makes Chamberlain, Liftmaster, and other garage door openers that utilize the Ratgdo hardware control board and commercial variants available to Apple's HomeKit smart home platform. You can determine if your garage door opener is compatible by checking the Ratgdo website.
Why use this plugin for Ratgdo (and similar devices like Konnected) support in HomeKit?
In a nutshell, the aim of this plugin for things to just work with minimal required configuration by users. The goal is to provide as close to a streamlined experience as you would expect from a first-party or native HomeKit solution. For the adventurous, those additional granular options are, of course, available to support more esoteric use cases or other unique needs.
What does just work mean in practice? It means that this plugin will discover all your Ratgdo (or Konnected garage door opener) devices that are running ESPHome firmware without the need for additional configuration.
I rely on this plugin every day and actively maintain and support it.
In the interest of the community seeking a solution outside of myQ, I've developed a full-featured Homebridge plugin that enables the following features:
- Control of the garage door opener. This includes, for those that have always wanted the feature, the ability to close the garage door without the requisite safety warning and delay that Chamberlain and Liftmaster garage door openers emit when being controlled remotely.
- A motion sensor and control of the light attached to the garage door opener - each enabled by default, and each can be turned off in the feature options if your opener doesn't have it.
- Obstruction detection.
- Occupancy sensor support.
- Ability to lock and unlock the garage door opener by locking out its wireless remotes - exposed on the garage door tile, and optionally as a standalone lock switch accessory.
- Read-only garage door opener support.
- An automation switch (open/close) and an automation dimmer (set the garage door to any position).
- For Ratgdo (ESP32) Disco devices: backup battery status, parking-assist laser and LED controls, and vehicle arriving, leaving, and presence sensors.
- For Konnected blaQ devices: a pre-close warning switch and a strobe switch.
- Support for all current Ratgdo-branded devices as well as for variants like Konnected blaQ that use ESPHome.
- A rich webUI for configuration.
Installation
To get started with homebridge-ratgdo:
- Install
homebridge-ratgdousing the Homebridge webUI. Make sure you makehomebridge-ratgdoa child bridge for the best experience. - For Ratgdo devices, install the ESPHome Ratgdo firmware. You'll need to use Chrome for this as Safari doesn't support installing firmware through a USB serial port.
- Fully open and close the garage door one time. ESPHome Ratgdo will use this to determine how long it takes to open and close your garage door to enable precise control of the position of the garage door opener.
- If your device has the ESPHome native API encryption key enabled, set that key in the plugin's feature options (the
Device.Encryption.Keyoption for that device) so the plugin can connect to it. Devices without API encryption need no key. - That's it. Ensure
homebridge-ratgdois running and it will autodiscover your Ratgdo devices and make them available in HomeKit.
Adding a device by address
Autodiscovery finds your openers by listening for them on your network, and for nearly everyone that is the whole story. Some devices can't be found that way: one on a different subnet, one behind a network that drops multicast traffic, or one whose firmware announces itself badly. And sometimes a device is reachable at more than one address and you want the plugin to use a particular one. The Device.Address feature option covers those cases - list a hostname or IP address there and the plugin connects to it directly, with no announcement required.
The easiest way to add one is the Add Device button in the plugin's webUI settings. Enter the address, and the device's API encryption key if it has one, then press Validate Device. The plugin connects to that address right then and tells you what answered - the device's name, model, MAC address, and firmware version - or explains what went wrong. Nothing is written to your configuration until a device has answered, so you find out you mistyped an address before you save it rather than afterward.
Some details that matter:
- An IPv6 address can be written bare (
2001:db8::5) or in the bracketed form URLs use ([2001:db8::5]) - the plugin reads the two as one address, so listing both spellings adds nothing. - An address carrying a zone identifier (
fe80::1%en0) is refused, on the card and in the option list alike. A zone names the interface a link-local address was heard on, which means nothing to a plugin connecting from somewhere else; list the device's routable address or its hostname instead. - A listed address governs which address the plugin uses for that device. If autodiscovery later announces the same device somewhere else, the plugin keeps using the address you listed and logs a note that the device is announcing itself elsewhere. If the device really has moved, update the option.
- An encrypted device's key belongs to the device. When you validate an address on the Add Device card, the plugin learns the device's MAC address from its answer, and saving stores the key against the device - exactly where a discovered device's key lives - so once the device appears in the sidebar, its key shows on its row and can be changed there. An address typed straight into the option list or into
config.jsonconnects when the device's key is already stored for it or is the global encryption key; otherwise an encrypted device refuses the connection, with a log line pointing you to Add Device. Firmware older than ESPHome 2025.4.0 does not announce the device's MAC address, so such a device can use only the global encryption key. - Removing an address from the list leaves the device's key where it is, because the key belongs to the device rather than to the address.
- If two listed addresses reach the same device, the plugin configures it once, using whichever address you listed first, and logs a note naming both.
Documentation
Getting Started
- Installation: installing this plugin, including system requirements.
- Changelog: changes and release history of this plugin.
Additional Topics
- Feature Options: options to allow you further tailor to your needs, particularly for those who want to have enhanced automation support.
- MQTT: how to configure MQTT support.
Plugin Development Dashboard
This is mostly of interest to the true developer nerds amongst us.
