[U400 Smartlock]: Integration with Aqara Hub & Homekit + Home Assistant

Home Assistant is my main automation.
I also want to use UAB feature with the U400 Smartlock.
I currently have the lock paird to my Aqara M3 Hub, and connected to Home Kit.

Altough it is paird to my Aqara M3 Hub, which is integrated into Home Assistant. I do not see it exposed from the hub, to Home Assistant.

Because I want to use the UAB feature, I have to pair to Home Kit. But, I am unsure how to still get exposed to Home Assistant or Alexa.

Thanks

1 Like

From Apple home you should be able to go to the lock’s settings and share device. You can also go to the locks settings in Aqara home and scroll down to matter which would give you a code. You’d then use that matter code in home assistant to add as a matter device. If possible post screenshots so we can assist further

Currently, my U400 lock is bound to Aqara - M3 Hub and then added to Home(kit) from the Aqara app. This works fine and approaching the lock works and door opens.

Lock is just not in Home(kit) or Alexa.

ISSUE #1 - Trying to go to the Aqara app and getting a QR code to then use to bind to Home Assistant fails with an error message. I guess this is because it is already bound via Matter to the Aqara M3 Hub (according to Claude)

Claude is telling me that because the lock’s main ecosystem is the Aquara/Matter connection that it has already connected via Matter. And that the lock is not exposed to Home Assistant via the Matter Integration in Home Assistant.

ISSUE #2 - When looking at the lock in Apple Home(kit), I do not see an option to “Share Device” - I do see an option to “Turn on Pairing Mode”. This code of course I am guessing is not a Matter code, but a Home Kit code - but this code fails when trying to use as well.

CLOSEST METHOD I HAVE FOUND is if I go into Home Assistant on my phone, to the Matter integration and select ADD NEW DEVICE and then select MORE OPTIONS…I can see my other Matter devices, INCLUDING the U400 Smart Lock. But, selecting the lock device to add never connects and gives the error “Unable to Add Accessory.”

Sorry, lock is not in Home Assistant or Alexa.

1 Like

Hmmmm, and yet somehow…Alexa has discovered My Aqara Hub and Smart Lock. But then it tells me to add the devices, which then gives instructions to put the device in “pairing” mode. So, i play the game and go to the Aqara U400 lock and press the SETUP button on the back, gives me instructions provide ADMIN fingerprint, but tells me to use the APP to pair the device. #smh #ughh

Here is what I see in Alexa. I have no idea how Alexa discovered the devices.

Unfortunately Amazon Alexa is a service I do not use but I’m certain someone will be able to respond to that.

In Apple Home the correct term is turn on pairing mode which will generate a matter code for other ecosystems. (Apologies, I used the term share device but that is actually in home assistant)

If you generate that code in Apple Home then go to Home Assistant-settings-devices-integration-matter-add a device it should ask if it’s in use-select that-pick Apple and then you should have an option to paste the code. It should then go through the setup process.

Please let me know if you have issues and I’ll try and help you

Cheers USBen!

When I use the “Matter Code” created by going to the lock in Apple Home and selecting “Turn on pairing mode” this code fails when attempting to use in Home Assistant.

But, if I reset the entire lock, And DO NOT join to the Aqara Hub, and Homekit, I can easily pair to Home Assistant via Matter, and this works. I tested this on a test HA environment I have/created. And then I tested on my production environment - and this worked - before restoring it.

1 Like

Nice! I was going to suggest resetting next :wink: If you go into the settings-general-matter accessories you should see the U400 (it’s the old setup) still in there. If you delete that and then go into home assistant for the u400 you can select share device using the code it provides to add into Apple home. You should be able to then add it into Aqara home as well.

I’ve done the reverse before. Apple Home-Home Assistant-Aqara. It will give you the beauty of HA automations, UWB on Apple and the settings, automations and firmware updates in Aqara