You have to set it up in the Aqara App first.
Here’s what I did to get things working:
- Ensure the Aqara app is in “HomeKit” mode.
- Press and hold the button the hub until it flashes yellow.
- Once it’s flashing, add the hub to the Aqara (or Apple Home) app.
- Open the Aqara app and add all of the sensors that you are going to use.
- Configure the Hub to behave the way you want (which sensors will trigger the alarm, the volume of the hub, etc). Note, that in HomeKit mode you cannot change the alarm sound.
- Once everything is set to your liking, remove the Hub from the Apple HomeKit app. This will leave the device on your network but will unpair it from HomeKit.
- Open HomeAssistant and use the “integrations” tab to add a new “HomeKit Controller” integration. It should automatically find the hub. Ensure that you enter your Hub’s HK code with the required dashes between the numbers (xxx-xx-xxx).
- Once pairing is complete you should see everything in Home Assistant and be able to arm the alarm from there. Note, that you cannot change which sensors will trigger the alarm on the hub unless you unpair from Home Assistant and add to HomeKit again.
'Having said that, it looks like the Aqara app uses some of the Bonjour strings to determine whether or not it can control the devices on the network…if Home Assistant were to pass those through to the Home Assistant Home Kit Bridge I imagine that the Aqara app might be able to control the Hub through Home Assistant…this is all speculation though it’s based on the fact that up until .110 the Aqara Hub wouldn’t show in the Aqara app when it was added to Home Assistant. After .110 it does. I believe this is related to the change that allows the Home Assistant Bridge to pass manufacturer names through to Home Kit.