Aqara Smart Lock U400 Setup
Fit the Aqara Smart Lock U400, pair it with Home Assistant over Matter and Thread, calibrate it, and know which settings stay in the Aqara Home app.
The Aqara Smart Lock U400 is a fingerprint deadbolt that speaks Matter over Thread. It joins the home’s Thread network and pairs with Home Assistant’s Matter integration, with no Aqara hub in between, and is controlled locally. A few of its settings stay in the Aqara Home app: this guide says which.
Before You Start
- The door fits. The U400 replaces a single-cylinder deadbolt. Check the door before the visit:
- Door thickness: 35 to 55 mm (1⅜ to 2⅛ in).
- Backset: 60 or 70 mm (2⅜ or 2¾ in).
- Bore: 54 mm (2⅛ in), or 38 mm (1½ in) on a hollow door.
- The Thread network is up. Home Assistant needs a Thread border router, for example a SONOFF Dongle Plus MG24 in Thread mode. See Thread Integration Setup.
- The phone is ready to commission. The Home Assistant Companion app is signed in to this home, Bluetooth is on, and the phone has the Thread credentials. See Pairing Matter Devices.
- Save the Matter code in Selora Connect. It is under the battery cover of the inside unit, next to a second code. Scan the Matter Pairing Code into the home’s Pairing Codes, not the MagicPair code, which is for the Aqara Home app.
The lock runs on a rechargeable battery, charged over USB-C. The USB-C port on the outside is for emergency power only.
Pair the U400
- Aqara asks for the border router within 5 m (16 ft) of the lock while pairing, or 3 m (10 ft) through a wall, for IPv6 on the network, and for the phone on the same Wi-Fi network as the border router.
- In the Companion app, go to Settings > Devices & Services > Add Device > Add Matter device.
- Open the battery cover and press Set once. The lock stays in pairing mode for 10 minutes.
- Scan the Matter Pairing Code, or type the manual pairing code saved in Pairing Codes.
- Name it after the door, and assign the area.
It appears as a lock entity.
Calibrate the U400
Calibrate the lock once it is paired: until then, Set puts it in pairing mode instead of its setup menu. The lock does not work properly until it is calibrated.
- Keep a key on you, so you cannot be locked out.
- Close the door, and leave it unlocked.
- Open the battery cover, press Set, then 5, and follow the voice prompts. The Aqara Home app can run the calibration too.
- Open the door, close it from the inside, and lock it, so the lock learns the door’s status.
U400 Users, Fingerprints, and Auto-Lock
- Fingerprints: add them on the lock (Set, then 1) or in the Aqara Home app.
- Users and PIN codes: add them on the lock, in the Aqara Home app, or from Home Assistant with the Matter integration’s lock actions, such as Set lock user and Set lock credential. Over Matter, the lock takes up to 20 users and 35 PIN codes of 4 to 8 digits.
- Auto-lock timer and night latch: Aqara puts them in the Aqara Home app. Home Assistant also shows an Auto-relock time setting for a Matter lock that reports one. The Aqara Home app pairs with the lock over Bluetooth, with no Aqara hub, and Aqara recommends adding it there as well as to Home Assistant.
- Apple home key and UWB unlocking: only through Apple Home.
Use the U400 in Recipes
- Auto-Lock at Night: pick the U400, with a door sensor on the same door so it holds off while the door is open.
- Unlock on Arrival: pick the U400.
U400 Firmware Updates
Aqara publishes the U400’s firmware to the CSA’s Distributed Compliance Ledger, which Home Assistant checks every 12 hours. When an update is available, an update entity on the device page offers to install it. The Aqara Home app can also update it over Bluetooth. After an update, the door status reads unknown until the door is opened, closed, and locked.
Updates do not reach Thread devices on a Thread network with an Apple border router, such as an Apple TV or a HomePod. In a home with one, see the Matter integration documentation for the workaround.
U400 Troubleshooting
- The pairing code is refused. The printed Matter code stops working once the lock is paired with a Matter app. Generate a new pairing code in the app that already has it, then press Set on the lock.
- Pairing keeps failing. Press Set, then 4, which clears the lock’s Matter data, and pair it again.
- It does not lock on its own after the door closes. Calibrate it again, then open the door, close it from the inside, and lock it once.
Last modified December 1, 2026: docs: setup guides for Aqara P2, FP300, U400, Third Reality leak sensor, and Hue Bridge (11bb9493)
