HomeKit Controller integration: control your HomeKit accessories from Gladys, no Apple hardware required

Hello everyone,

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

What it does

  • Searches for HomeKit accessories on the network.
  • Pairs with the 8-digit code (123-45-678).
  • Updates states in real-time, plus a full read every 60 seconds for safety.
  • Automatic reconnection, and the accessory is found even if its IP changes.
  • Manages bridges: one Gladys device per connected accessory.
  • Available actions: search, pair, identify (the accessory flashes or beeps), unpair.

Supported devices

  • Bulbs: on/off, brightness, color, color temperature
  • Switches, outlets, valves
  • Fans (with speed)
  • Thermostats: temperature, setpoint, humidity
  • Shutters, blinds, windows, doors: position, open / stop / close
  • Locks
  • Sensors: temperature, humidity, brightness, motion, presence, opening, leak, smoke, CO, CO2, PM2.5 / PM10
  • Battery level
  • 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

Feedback is welcome here or in the GitHub issues: Issues · prohand/gladys-homekitcontroller · GitHub

Thanks in advance to those who will test! :folded_hands:

Hello,

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!

Thanks a lot for this detailed feedback :folded_hands:

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 :+1:

Hello,

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:

  • [2026-11-10T08:23:52.511Z] [INFO] [homekit] 2 paired HomeKit accessory(ies) loaded
    [2026-11-10T08:23:53.011Z] [INFO] [homekit] Aqara-Hub-M3-05DB: HomeKit service(s) not supported: 22A, 239, 7E, 9715BF53-AB63-4449-8DC7-2785D617390A, F49132D1-12DF-4119-87D3-A93E8D68531E
    [2026-11-10T08:23:53.107Z] [INFO] [homekit] Aqara-Hub-M200-BD7A: HomeKit service(s) not supported: 22A, 239, 7E, 9715BF53-AB63-4449-8DC7-2785D617390A, F49132D1-12DF-4119-87D3-A93E8D68531E
    [2026-11-10T08:23:53.220Z] [INFO] [homekit] Aqara-Hub-M3-05DB (192.168.1.77:43485) connected, 8 device(s), 30 event subscription(s)
    [2026-11-10T08:23:53.239Z] [INFO] [homekit] Aqara-Hub-M200-BD7A (192.168.1.218:41261) connected, 5 device(s), 19 event subscription(s)
    

Again, a big thank you for your responsiveness and the quality of the follow-up! Now it’s Gladys who controls my home.

Thanks for the feedback, glad the status updates are working well now! :slightly_smiling_face:

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.
    :backhand_index_pointing_right: 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”.

Release: Release v1.4.0 · prohand/gladys-homekitcontroller · GitHub

Thanks again for testing, it’s very helpful! :folded_hands: