New Aqara Gateway Hub

I succeeded to connect the Aqara gateway to home assistant using the HomeKit Controller component.

Step1: add this to the configuration.yaml

discovery:
  enable:
  - homekit

Step2: Initial setup with iPhone HomeKit and remove the Hub from the Apple Home App

The HomeKit code is expected by hass to be 123-45-678 instead of the 8 digits directly.

If anyone knows how to continue from this point on, I’m interested. I can only send orders tothe ledring of the gateway, I’m not receiving any status updates.

1 Like

Because you connected the “light” of the gateway, nor the gateway and his sensors

According aqara forum, LAN access (developer mode) is planned for early 2019

read the reply to post dated 23rd September

https://community.aqara.com/forum/faq-1/topic/how-to-connect-the-aqara-hub-to-the-network-78

Missed the admin reply on that topic. Thank you I will keep the aqara hub then and wait patiently. In the mean time I’m going to play with deconz and/or XBEE

If you’re running deconz there should be no need for the aqara gateway

At least i can help make this ‘light’ component working correctly:
You need to change one line of code in this file:
/homeassistant/components/light/homekit_controller.py

line 44 from this:
ctype = characteristic[‘type’]
to this:
ctype = characteristic[‘type’].upper()

If using hassio install, then you need to create this file:
/config/custom_components/light/homekit_controller.py

and add modified contents to it (take this file from github, modify line 44 and save to this file)
restart hassio.

After this your light will be fully operable, you will get status updates, you can change color of light, etc…
not much as for a gateway, but still something…

Also aqara released new firmware 1.4.7 and this gateway can now be added to mihome app.
Also after doing so, HA will detect xiaomi_aqara component in local LAN (this mode is enabled by default
in new firmware after adding the gateway via mihome app)

the only thing is missing is ‘key’, new mihome app does not have this setting for getting key…
maybe someone will chime in who knows more, but i already looked /data/ files of android app
in sqlite databases and xml config files, there is no key…

Latest Mi-home app on my Mk2 gateway still has key details . information has moved. Not sure how this reports on mk3 gateway

select gateway
select hamburger symbol top right (…)
select about
select wireless communications protocol

With this gateway there is no ‘step 3’ (i know that there should be ‘about’ section but it’s missing)
what version of app do you have? mine is 5.4.33.
also this gateway is not ‘mk3 aka ‘lumi.gateway.v3’’ it is called ‘lumi.gateway.aqhm01’

home assistant discovery service is seeing it on LAN with this message:
[homeassistant.components.discovery] Found new service: xiaomi_gw {‘host’: ‘192.168.1.186’, ‘port’: 54321, ‘hostname’: ‘lumi-gateway-aqhm01_miio152593513.’, ‘properties’: {‘path’: ‘/mydevice’}}

But:
xiaomi_aqara component is not discovering anything:
[homeassistant.components.xiaomi_aqara] No gateway discovered

confirm my version is 5.4.33

So we can’t get the key to enable xiaomi_aqara?
a month waiting for the update to get the hub in mi home and there is no “about” to get the key :confused:

Where can I buy the EU-Version and is it useable with openhab 2?

Do you think it’s a good idea to go in for aqara homekit hub right now?
Will probably arrive next month.
I mean new hub is 35$. Old hub is 25$.
New hub is homekit enabled. Do you think early aqara will stick to its early 2019 update promise?

I also bought the new Aqara Hub, I contacted their support and they told me there is no such a “key” option available at the moment. I’m willing to wait some weeks to have it enabled. It would be awesome to know a more precise date though.
If anyone ends up finding where is the key, can you please post the information in the forum?

2 Likes

I am also in the same boat. Is there any update from Xiaomi? Thank you

Any news on this topic, I would like to order the latest gateway?

I think it is not wise to order the latest. Mine one is still not working and there is no sign from Xiaomi to show KEY / Developer mode on their latest app. Thanks.

There are tokens present on my Android Phone under the “SmartHome” -> “logs” -> “plug_DeviceManager” folder. Open the a log file and search for “Aqara Hub”.

Is this the token that we need to integrate with Home Assistant?

So this is the problem that my new Aqara Gateway is not working? Because old one is working with no problem…

In the new one I enabled key, but still communication with HA is strange - not working correctly…

Same problem here. The new Aqara gateway does not show the password on the Xiaomi Mi Home application so it cannot be integrated with Home Assistant. Wondering if I should wait for Aqara to provide this option or I should buy a Xiaomi Mijia gateway v3 instead… :frowning: