I’ve developed an integration that turns Gladys into a HomeKit controller. Gladys pairs directly with your HomeKit accessories and controls them locally, without an iPhone, Apple TV, or HomePod, and without the cloud.
I’m looking for testers to validate it on real hardware.
Installation
You need Gladys 5.1.0 or newer (for scenes and the widget).
In Gladys, go to Integrations, search for HomeKit Controller, and install it.
Then, follow the Configuration tab of the integration to pair your accessories.
Programmable buttons and doorbells (via scenes, see below)
Scenes
Trigger « HomeKit Button Pressed »: single, double, or long press, with filtering by device and button number. Useful for remotes (Eve Button…) and doorbells.
Trigger « HomeKit Accessory Lost / Returned »: to be notified when an accessory no longer responds.
Action « Identify a HomeKit Device »: the accessory signals itself.
Action « Reread a HomeKit Device »: rereads its values immediately, useful before a condition.
Dashboard widget
« HomeKit Accessories »: number of online and offline accessories, the list, and a Reconnect button when one of them no longer responds.
Limitations
Only IP accessories (Wi-Fi / Ethernet). No Bluetooth or Thread.
No cameras or TVs yet.
Before testing
A HomeKit accessory only accepts one controller. Remove it first from the Home app (or Home Assistant), or reset it.
Keep the 8-digit code handy.
The accessory and Gladys must be on the same network (same VLAN).
What I’d like to know
The brand and model of your accessories
Whether the search and pairing worked
Whether the commands and states are coming back correctly
Whether the buttons trigger your scenes (single / double / long)
Whether the widget displays the correct state
Any issues encountered, with logs (LOG_LEVEL=debug) if possible
I would like to share some feedback after using your integration with my HomeKit setup.
My setup includes two Aqara hubs (Aqara-Hub-M3-05DB and Aqara-Hub-M200-BD7A). Currently, most sensors (temperature, contacts) work perfectly, but I am experiencing three issues:
1. Mi Button (MK001): Limited States
Symptom: Only the battery state and low battery signal (low battery) are reported in the integration. Press events (single, double, long) are not exposed or detected as triggers.
2. Missing Connected Air Conditioner
Symptom: My connected air conditioner, which is visible and controllable via Matter, is not discovered at all by the integration. The thermostat/air conditioning profile seems to be ignored during synchronization.
3. Missing Aqara Air Quality Monitor (AAQS-S01)
Symptom: This multifunction device (temperature, humidity, CO2/COV, PM2.5) does not appear in the integration, likely due to an unsupported sub-service during the initial import.
Would it be possible to add a fix or improve support for these device profiles, particularly for event-triggering buttons?
I remain at your disposal if you need additional logs or real-environment testing.
Thank you for your excellent work on this integration!
Version 1.3.0 has just been released and addresses your three points:
1. Mi Button (MK001)
Button presses were already managed, but only with the scene trigger « HomeKit Button Pressed » (Triggers section under Integrations). Nothing appeared on the device itself, which was confusing.
Now, each button also has a « Button » functionality on its device:
1 = single press
2 = double press
6 = long press
You can now use it with the usual trigger on a device’s state, like a Zigbee button.
2. Air Conditioner
HomeKit air conditioners (Heater Cooler service) are now supported: on/off, mode (auto / cold / hot), setpoint, and temperature. Thermostats also gain their mode and operating state.
3. Air Quality Sensor (AAQS-S01)
Added VOC, NO2, ozone, and SO2 measurements (in µg/m³).
After the update
For an already added device, open the Discovery tab and click Update: the new features are added.
If the air conditioner or air quality sensor still doesn’t appear, check the integration logs. A new line indicates what is not supported: … HomeKit service(s) not supported: …. Send it to me, and I’ll know what to add.
Note: the integration only sees what the hub shares in HomeKit. A device that the hub only shares in Matter cannot appear here.
I don’t have an Aqara hub to test. Your real-world feedback will help a lot
So, after your intervention, the status updates are now working very well, thank you. The Mi button (very useful as it doesn’t report via Matter) and the air sensor.
There are two last elements to address to advance the integration with my Aqara M3 and M2 hubs:
1. Aqara Smart Plug EU (AP007)
Only the on/off switch reports. Would it be possible to add the reading of the instantaneous power sensors (Watts) and energy consumption (kWh)?
2. IR-Controlled Air Conditioners (M3 / M2 Hubs)
Air conditioners controlled via the hubs’ infrared (IR) transmitters still do not report. Here are the startup logs, with the unrecognized HomeKit services:
Thanks for the feedback, glad the status updates are working well now!
Version 1.4.0 is available. Here’s the status of your two requests:
1. Aqara Smart Plug EU (AP007): Power and Consumption
HomeKit doesn’t have a standard value for power (W) or energy (kWh).
Version 1.4.0 now reads the values used by Eve accessories and many Homebridge plugins: power, energy, voltage, and current.
Aqara doesn’t seem to publish the consumption of its plugs in HomeKit (it only appears in the Aqara app). I can’t make any promises for the AP007.
To be sure, version 1.4.0 adds a log line on connection: vendor characteristic(s) not supported (service/characteristic): …
It lists the manufacturer-specific values that the integration doesn’t read yet. If this line appears for your plug, you can paste it here? If the power is hidden there, I can add it.
2. Infrared Air Conditioners from M3 / M2 Hubs
According to your logs, the hub doesn’t publish IR air conditioners in HomeKit. Otherwise, they would appear as a device or in the “not supported” line.
Aqara only shares IR air conditioners in Matter (and only one air conditioner per M3 hub).
This is therefore not possible in this integration. The solution is to add them with the Gladys Matter integration.
Bonus
The codes 22A, 239, and 701 in your logs are technical services of the hub (Wi-Fi, Thread, operating information). They are no longer reported as “not supported”.