Hello, I’m trying to connect my aqara hub to HA via the integration but its not working for me.
Im getting the error:
Logger: xiaomi_gateway
Source: /usr/local/lib/python3.8/site-packages/xiaomi_gateway/init.py:429
First occurred: 6:43:46 PM (1 occurrences)
Last logged: 6:43:46 PM
No data in response from hub None
I’m providing the integration setup with both ip and mac address of the device.
I’m not sure about the interface thing, it is prefilled with “any” and since it is not a dropdown select I know what options it supports.
Anyone have had success integrating aqara hub ?
When trying to add it via the homeKit integration I am also getting an error:
An unhandled error occurred while attempting to pair with this device. This may be a temporary failure or your device may not be supported currently.
Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:333
Integration: HomeKit Controller (documentation, issues)
First occurred: 8:30:59 PM (2 occurrences)
Last logged: 8:32:39 PM
Pairing attempt failed with an unhandled exception
Traceback (most recent call last): File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py”, line 87, in send_bytes return await asyncio.wait_for(result, 30) File “/usr/local/lib/python3.8/asyncio/tasks.py”, line 498, in wait_for raise exceptions.TimeoutError() asyncio.exceptions.TimeoutError During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py”, line 333, in async_step_pair self.finish_pairing = await discovery.start_pairing(self.hkid) File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/discovery.py”, line 73, in start_pairing response = await self.connection.post_tlv( File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py”, line 378, in post_tlv response = await self.post( File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py”, line 342, in post return await self.request( File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py”, line 435, in request resp = await self.protocol.send_bytes(request_bytes) File “/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py”, line 91, in send_bytes raise AccessoryDisconnectedError(“Timeout while waiting for response”) aiohomekit.exceptions.AccessoryDisconnectedError: Timeout while waiting for response
For anyone who finds this post having similar problems. I managed to get it working… here are some notes:
Don’t input the pairing number/code in format xxx-xx-xxx instead, use the format xxxxxxxx
I have no explanation for the errors, I was reading a lot of stuff online and was heading down a rabbi hole path, resetting my device and trying to download old versions of the Mi Home app and setting the server to China Mainland just to be able to enable some LAN setting for the hub. This wasn’t possible, so it wouldn’t work. In the end i restarted the hub and HA and the app and tried again and again, and suddenly after trying a few times the integration succeeded.
1 Like