Quick Answer

Aqara devices work in Home Assistant three ways: via Zigbee2MQTT (best for local control, most attributes), ZHA (simpler, built-in), or through an Aqara hub such as the Hub M3, which shares its devices with HA over Matter. For local control without an Aqara hub, use Zigbee2MQTT — it supports almost all Aqara Zigbee sensors and switches.

Table of Contents

  1. Compatibility Overview
  2. Via an Aqara Hub (Matter)
  3. Via Zigbee2MQTT (Recommended)
  4. Via ZHA
  5. Entity Examples
  6. Motion → Light Automation
  7. Troubleshooting
  8. FAQ

What You Need

Compatibility Overview

Aqara makes a wide range of Zigbee devices — motion sensors, temperature/humidity sensors, door/window sensors, cube controllers, wall switches, and more. The vast majority work with Zigbee2MQTT and ZHA without needing an Aqara hub (Hub M3, or the older M2).

Common Aqara devices confirmed working:

Note: Aqara E1 and newer devices use Zigbee 3.0 and pair more reliably. Older Aqara devices (original series) use Zigbee 1.2 and may require a closer coordinator during initial pairing.

Via an Aqara Hub (Matter)

Home Assistant has no Aqara hub integration that you log into with an IP address and token. Its Aqara page covers Aqara's Matter products: Aqara is a "Works with Home Assistant" partner, and its devices are added through HA's built-in Matter integration, with local push updates. The hub HA lists is the Aqara Hub M3, the successor to the Hub M2. It adds a Matter controller and a Thread border router. Aqara also gave the older Hub M2, Hub E1 and M1S Gen 2 Matter-bridge firmware in 2023, so those can share their Zigbee devices over Matter as well.

  1. Set up your Aqara hub and pair devices in the Aqara Home app first
  2. In the Aqara Home app, enable Matter on the hub and copy its Matter pairing code
  3. In HA: Settings → Devices & Services → Add Integration → Matter, then add the hub with that code
  4. Supported Aqara child devices appear in HA as Matter entities

Two things to know. First, HA's older "Xiaomi Gateway (Aqara)" integration only covers the legacy Xiaomi Mijia gateways, not the M2 or M3. Second, community guides report that the Hub M2 can also be paired to HA with the HomeKit Device integration, which stays local. In both cases you're dependent on the Aqara hub's firmware and the Aqara app for device management, and a Matter bridge exposes fewer device attributes than a direct Zigbee connection. For a true local-first setup, Zigbee2MQTT is better.

Via Zigbee2MQTT (Recommended)

This approach bypasses the Aqara hub entirely. Your Zigbee coordinator becomes the hub.

  1. Ensure Mosquitto broker and Zigbee2MQTT are installed and running in HA
  2. In the Zigbee2MQTT web UI, enable Permit join
  3. Put your Aqara device into pairing mode (method varies by device — usually hold the reset button until the LED flashes)
  4. Watch the Zigbee2MQTT device list — your device appears within 30 seconds
  5. Give it a friendly name in the Z2M UI
  6. HA auto-discovers the device entities via MQTT autodiscovery
Aqara pairing tip: Original Aqara sensors (RTCGQ01LM, MCCGQ01LM) sometimes need to be within 1–2 meters of the coordinator for initial pairing. After pairing, they work at full Zigbee mesh range.

Via ZHA

  1. In HA: Settings → Integrations → ZHA → Add Device
  2. Put your Aqara device into pairing mode
  3. ZHA discovers and adds it — entities appear automatically

ZHA supports most Aqara devices but may expose fewer attributes than Zigbee2MQTT. For example, an Aqara WSDCGQ11LM via ZHA gives you temperature and humidity; via Zigbee2MQTT it also exposes pressure, battery voltage, and link quality.

Entity Examples

After pairing an Aqara P1 motion sensor (RTCGQ13LM) via Zigbee2MQTT, you'll get these HA entities:

Motion → Light Automation (Full YAML)

automations.yaml — Aqara motion sensor controls light
automation:
  - alias: "Hallway light on motion"
    description: "Turn on hallway light when motion detected, off after 5 minutes"
    trigger:
      - platform: state
        entity_id: binary_sensor.hallway_motion_occupancy
        to: "on"
    condition:
      - condition: time
        after: "06:00:00"
        before: "23:00:00"
    action:
      - service: light.turn_on
        target:
          entity_id: light.hallway
        data:
          brightness_pct: 80
      - wait_for_trigger:
          - platform: state
            entity_id: binary_sensor.hallway_motion_occupancy
            to: "off"
            for:
              minutes: 5
      - service: light.turn_off
        target:
          entity_id: light.hallway

Troubleshooting

FAQ

Do Aqara devices work without an Aqara hub?

Yes — most Aqara Zigbee devices work with any Zigbee coordinator (Sonoff ZBDongle-P, ConBee III, etc.) via Zigbee2MQTT or ZHA. You don't need an Aqara hub (M3 or M2) for HA integration.

Which is better for Aqara: Zigbee2MQTT or ZHA?

Zigbee2MQTT exposes more Aqara-specific attributes and has wider compatibility with newer Aqara devices. ZHA is simpler to set up. For most users, Zigbee2MQTT is the better long-term choice.

Can I use Aqara Matter devices in HA?

Yes — Aqara's Matter-enabled hubs (the Hub M3, plus the M2, E1 and M1S Gen 2 after their 2023 firmware updates) act as Matter bridges, exposing Zigbee devices to HA as Matter entities. Aqara's Matter-over-Thread devices can also join HA directly through a Thread border router. This is an alternative to direct Zigbee integration.

SmartWired uses affiliate links. If you buy through our links, we may earn a commission at no extra cost to you. See our Affiliate Disclosure.