Connect Aqara Devices

Hi, I am trying to connect new aqara devices, a switch and a motion sensor.
I use zigbee2mqtt, mosquitto as broker and a TI stick. I don’t have an aqara hub. The devices are supported by zigbee2mqtt and the docs say “just factory reset them, and they should get added automatically”. I already connected a Philipps Switch, and that just worked out of the box.

From my point of view, it is very confusing to use zigbee, configure it, add devices, etc. I found that I need to enable permit_join in the zigbee2mqtt config. Additionally, I found in the zigbee2mqtt docs that I need to add the following to my config:

 mqtt:
     discovery: true
     broker: mosquitto

I found nothing to change in the mosquitto config.
Now I tried factory resetting the devices for multiple times, or just pressing the buttons, but they do not appear as devices (Settings > Devices).

Is there anything other I have to do? I read in the docs, manually adding the devices is not recommended.

Thank you for your help!

Ok, I was now able to add the switch after changing the broker in the config. I found under Settings > Integrations > Mosquitto > Configure > Re-Configure Mosquitto the broker name “core-mosquitto”. The entry in configuration.yaml looks now like this:

 mqtt:
     discovery: true
     broker: "core-mosquitto"

After restarting, I resetted the switch and it was added. For the motion sensor it still does not work.

The motion sensor probably falls asleep. Keep pressing the pairing button every second or so while pairing.

1 Like

Hold the button down for a few seconds until the light flashes, then if that doesn’t do it try pressing it again.

Also try doing it when standing next to the zigbee dongle/usb stick, I managed to get one of the temperature sensors to pair from the other side of the house but couldn’t get any of the other devices to do so.

1 Like

Hi guys, thank you, you may have been right, although I already tried that a dozen times… But suddenly, after restarting it, and approx. 100 times later, it was just there :smiley:

Thank you!

Apparently the Aqara Devices don’t follow the zigbee spec 100% correctly

1 Like