Quick Answer

Aqara devices work in Home Assistant three ways: via Zigbee2MQTT (best for local control, most attributes), ZHA (simpler, built-in), or the official Aqara integration (cloud-dependent via M2 hub). 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 Official Aqara Integration
  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 the Aqara hub (M2 gateway).

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 Official Aqara Integration

The official Aqara integration in HA requires an Aqara M2 (or M1S Gen 2) hub on the same network. It communicates locally with the hub via the Aqara local API. This approach doesn't require a Zigbee coordinator dongle but does require buying an Aqara hub (~$35).

  1. Set up your Aqara hub and pair devices in the Aqara Home app first
  2. In HA: Settings → Integrations → Add → Aqara
  3. Enter the hub's IP address and access token (from the Aqara app developer settings)
  4. Devices appear in HA automatically

Downside: you're dependent on the Aqara hub's firmware and the Aqara app for device management. 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 II, etc.) via Zigbee2MQTT or ZHA. You don't need the Aqara M2 hub 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 (M3, Hub E1 with firmware update) act as Matter bridges, exposing Zigbee devices to HA as Matter entities. 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.