How I Added the Aqara G4 Doorbell to Home Assistant via HomeKit

Getting my Aqara G4 doorbell into Home Assistant was not difficult once I understood the order of operations. The awkward parts were discovery, the short pairing window and handing control from Apple Home to Home Assistant.

I had to repeat the pairing process several times before both the Aqara and Apple setup steps completed cleanly. This guide documents the process that worked for me, including the failed approach and the HomeKit terminology that is easy to mix up.

What I used

  • Aqara Video Doorbell G4 with its indoor chime/hub
  • Home Assistant
  • Aqara app
  • Apple Home
  • HomePod mini as my Apple home hub
  • A Wi-Fi network
  • The G4’s HomeKit pairing code

An Apple TV can also act as an Apple home hub. A HomePod mini happened to be the home hub in my setup, but I am not claiming that an Apple home hub is universally required simply to pair a Wi-Fi HomeKit accessory.

Before starting: HomeKit Device is not HomeKit Bridge

Home Assistant has two similarly named integrations with opposite jobs:

  • HomeKit Device imports a HomeKit accessory, such as the G4, into Home Assistant. This is the integration used in this guide.
  • HomeKit Bridge exports supported Home Assistant devices to Apple Home. It is optional and only becomes relevant after the G4 is working in Home Assistant.

This G4 procedure uses HomeKit over Wi-Fi. It is not a Thread setup and does not require a Thread border router.

The network requirement in my setup

I normally keep IoT equipment on a separate subnet. That arrangement failed during my G4 setup. For the procedure below, I had to place Home Assistant and the G4 on the same network and subnet so that discovery and pairing worked.

HomeKit discovery uses mDNS. A properly configured mDNS reflector may allow discovery across subnets, so my result should not be read as proof that every cross-subnet setup will fail. It is the limitation I observed on my network.

Step-by-step setup

1. Open the G4 pairing window

On the indoor G4 chime/hub, I pressed the pairing button 10 times. Its light began flashing orange, indicating that the G4 was ready for pairing.

2. Add the G4 to Wi-Fi through the Aqara app

With the G4 in pairing mode, I added it in the Aqara app and connected it to Wi-Fi. Before continuing, I confirmed that the doorbell was online in the app.

Keep the HomeKit pairing code nearby. Home Assistant will need it later.

3. Open the pairing window again

After the initial Wi-Fi setup, I put the G4 into pairing mode again. On the indoor chime/hub, I pressed the pairing button 10 times and waited for the orange light to flash.

4. Add the G4 in Aqara and Apple Home during the same pairing attempt

During that pairing attempt, I went through the G4 setup again in the Aqara app and also added it to Apple Home/HomeKit.

This part was finicky. Trying the apps one at a time did not work reliably for me, and I had to repeat the process several times. If the G4 leaves pairing mode before both setup paths are complete, press the button 10 times again, wait for the orange light and retry the same sequence.

At this stage, my HomePod mini was the Apple home hub. An Apple TV is another possible Apple home hub, but the hub was simply part of my real environment rather than a universal requirement for pairing every Wi-Fi HomeKit accessory.

5. Check that Home Assistant has discovered the G4

Before removing anything from Apple Home, I checked Settings > Devices & services in Home Assistant and confirmed that the G4 had appeared as a discovered HomeKit Device.

At this point I only checked that discovery had happened. I did not configure the device in Home Assistant yet because it was still paired to Apple Home.

6. Remove the G4 from Apple Home

Once I had confirmed that Home Assistant could see the G4, I removed it from Apple Home.

This step matters. A HomeKit accessory can be paired to only one HomeKit controller at a time. Removing it from Apple Home leaves it on the Wi-Fi network but makes it available for Home Assistant to become its HomeKit controller.

Do not reset or remove the G4 from the network at this point. The goal is to remove the existing HomeKit controller pairing, not undo the Wi-Fi setup.

7. Add the already-discovered G4 to Home Assistant

In Home Assistant:

  1. Open Settings > Devices & services.
  2. Open the G4 that was already discovered under HomeKit Device.
  3. Select Configure.
  4. Enter the G4’s HomeKit pairing code.
  5. Assign the device to an area.
  6. Select Finish.

Home Assistant is now the G4’s HomeKit controller.

Verification

After finishing the pairing flow, verify that:

  • the G4 appeared as a device in Home Assistant;
  • its available entities were associated with the correct area; and
  • the integration remained connected after leaving the setup screen.

The exact entities and behaviours exposed by a HomeKit accessory can depend on the accessory firmware and Home Assistant support. Check what your own installation exposes before building automations around it.

Reader questions: what can the G4 do in Home Assistant?

Can you receive a doorbell notification from Home Assistant?
  • Yes, provided the G4 firmware exposes its doorbell ring through the standard HomeKit doorbell service and Home Assistant creates the corresponding device trigger or event entity.
  • The notification is not automatic. You need to create a Home Assistant automation that reacts to the ring event and sends a notification to your chosen device. That automation can optionally include a still snapshot if the camera entity and notification target support it.
  • The exact trigger or entity available can vary with the G4 firmware and Home Assistant version, so check what your installation exposes before writing the automation.
Can you answer or respond to the G4 doorbell from Home Assistant?
  • Not through the current HomeKit Device camera support. Home Assistant can receive JPEG snapshots from supported HomeKit cameras, but this integration does not provide a true live RTP video stream or two-way audio.
  • That means I would not rely on Home Assistant to answer a visitor in the way the Aqara or Apple apps can. Use one of those apps when live viewing and talkback are required. Actual installed behaviour remains dependent on firmware and Home Assistant version, so verify the entities available in your own setup.
Can you view video recordings from Home Assistant?

Not through this HomeKit Device integration. It does not expose Aqara’s recording archive or HomeKit Secure Video recordings to Home Assistant. Those recordings remain in the Aqara or Apple ecosystem where they were created.

Home Assistant could make separate recordings if it had access to another supported video stream or source, but the HomeKit Device connection described in this guide does not expose that stream. A JPEG snapshot is not the same as live video or access to recorded history.

Does adding the G4 to Home Assistant affect battery life?

I have not yet measured battery life before and after adding the G4 to Home Assistant, so I cannot give a reliable percentage or promise that there is no impact.

Pairing alone may have little measurable effect, but real battery life can also be influenced by snapshot frequency, automations, Wi-Fi signal quality, motion and doorbell event frequency, and the G4’s recording and power settings. If battery life matters in your installation, record a baseline first and compare it over a meaningful period after enabling your automations.

What is available in Home Assistant compared with the Aqara app?

The two are useful for different jobs:

Home AssistantAqara app
Doorbell and motion events, when exposed by the firmwareDevice and firmware settings
Automations and custom notification workflowsNative live view
Integration with other Home Assistant entitiesTwo-way talk
JPEG still snapshotsRecording and event history
Dashboard context alongside the rest of the homeAqara-specific features and controls

The exact Home Assistant entities depend on the G4 firmware and Home Assistant version. I would keep the Aqara app installed for configuration, live viewing, talkback and recording history, while using Home Assistant for events, automations, notifications and wider smart-home context.

Troubleshooting

Home Assistant does not discover the G4

Briefly check whether Home Assistant and the G4 are on the same subnet. My separate IoT subnet prevented discovery.

If they must remain on separate subnets, review multicast routing, firewall rules and mDNS reflection between the relevant networks. A reflector may make cross-subnet discovery work, but I did not use that as the successful path documented here.

Also check that Home Assistant has Zeroconf discovery available. The official Home Assistant documentation notes that zeroconf must be configured explicitly when default_config is not in use.

The G4 is visible in Apple Home but will not pair with Home Assistant

Remove it from Apple Home first. Home Assistant cannot take over while the accessory is still paired to another HomeKit controller.

Removing the G4 from Apple Home is different from removing it from Wi-Fi or resetting the entire device. It needs to remain connected to the network so Home Assistant can discover it.

Pairing fails or the accessory disappears

The pairing window was temperamental in my testing. On the indoor chime/hub, press the pairing button 10 times again and wait for the orange light to flash. Then retry the Aqara and Apple setup sequence and check that Home Assistant discovers the G4 before removing it from Apple Home.

If repeated attempts fail, confirm the pairing code, verify that the G4 is still online in the Aqara app and check again for an existing Apple Home pairing.

I can only see HomeKit Bridge

That is the wrong direction for this task. Use HomeKit Device to bring the G4 into Home Assistant. HomeKit Bridge sends supported devices from Home Assistant to Apple Home.

Optional: expose it back to Apple Home

After Home Assistant has become the G4’s controller, HomeKit Bridge can optionally expose supported Home Assistant devices back to Apple Home.

I would treat this as a separate step and verify the result before relying on it. Re-exporting a camera through HomeKit Bridge may not preserve every feature or behaviour available through the accessory’s native Apple Home integration. The available result depends on what Home Assistant imports and what the bridge can expose, so I would not assume full feature parity.

Security and rollback

The HomeKit pairing code should be treated as a credential. I do not include mine in screenshots, notes or configuration examples.

Suggested but not yet tested as part of this procedure: if the Home Assistant arrangement does not meet your needs, remove the G4 from Home Assistant’s HomeKit Device integration, reopen the G4’s pairing window and add it to Apple Home again with its HomeKit code. Expect to re-check rooms, automations and notification settings after changing controllers.

What did not work for me

Treating the Aqara and Apple setup steps as completely separate attempts caused most of the wasted time. The pairing window was finicky, and I had to retry the sequence several times.

This did not require any Thread changes. It was a Wi-Fi and HomeKit controller hand-off problem.

Final recommendation

The reliable path in my setup was to follow the pairing order carefully: open the pairing window, connect the G4 to Wi-Fi in Aqara, reopen pairing, complete the Aqara and Apple Home setup, confirm that Home Assistant has discovered the G4, remove it from Apple Home, and then configure that already-discovered accessory in Home Assistant.

The important distinction is direction. HomeKit Device brings the G4 into Home Assistant. HomeKit Bridge is optional afterward if I want to send supported Home Assistant devices back to Apple Home.

Source