zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

force device to connect with router instead of coordinator

Open trekker25 opened this issue 7 years ago • 17 comments

is there a way to have an end device (aqara motion sensor) to connect to the nearest router instead of the coordinator?

The stick is in my utillity closet and next to it is my toilet with a Hue bulb (router) and Aqara motion sensor. The router and sensor are only 30 cm away from each other and it would be logical the sensor connects to the router instead of coordinator (thick wall between).

Now there is a link quality of 20 - 30 for the motion sensor, and connecting to the router would make more sense.

Battery in and out? Or how to solve this?

EDIT i pulled out the battery and put back in. Now all devices (including routers) are directly connected to coordinator and not router (in hue remote was connected to router)

is there a command to activate a heal / optimize of the zigbee network?

trekker25 avatar Dec 23 '18 17:12 trekker25

Pairing it while having it close to the bulb should do the trick.

Koenkk avatar Dec 25 '18 15:12 Koenkk

is pairing through routers working ?

lolorc avatar Dec 28 '18 14:12 lolorc

This is hard to say, depends on the router.

Koenkk avatar Dec 28 '18 20:12 Koenkk

Does it work with a CC2530 router?

h4nc avatar Dec 29 '18 18:12 h4nc

I`m not sure, @ptvoinfo is this supported?

Koenkk avatar Dec 29 '18 23:12 Koenkk

Can anyone tell me if it work to pair to a router with a Xiaomi Power Plug ZNCZ02LM?

nickrout avatar Jan 10 '19 06:01 nickrout

I also would like to know the answer to this one.

Can anyone tell me if it work to pair to a router with a Xiaomi Power Plug ZNCZ02LM?

hvddrift avatar Jan 18 '19 13:01 hvddrift

@hvddrift Both devices are routers and should be paired with a coordinator. You cannot pair a router to a router.

ptvoinfo avatar Jan 19 '19 05:01 ptvoinfo

I am still trying to understand how this should work...

I have the following network chrome_2019-01-19_22-31-44

The Motion sensor is 1 meter away from a Xiaomi Plug (router), and yet it joins back to the controller with a link strenth of 1. Is this intended? Should it try to join the router (I assume the signal strength would be stronger)

hvddrift avatar Jan 19 '19 13:01 hvddrift

@hvddrift I would recommend updating to the latest dev branch, this will show the mesh network better (as one node can be connected to multiple)

Koenkk avatar Jan 19 '19 13:01 Koenkk

Noob, question. Are there instructions for updating to the dev branch?

Thanks dank je

hvddrift avatar Jan 19 '19 13:01 hvddrift

I worked it out.. Found another thread.

So, this is my network map now. Has some more information. But the Motion Sensor still bypasses the router. What makes the device connect to a router or direct to the Coordinator?

chrome_2019-01-20_00-34-56

hvddrift avatar Jan 19 '19 14:01 hvddrift

@hvddrift the device self decides about this, sometimes it helps to repair the device while having it close to the router you want to pair it to.

Koenkk avatar Jan 19 '19 17:01 Koenkk

And another basic question... To "repair" a device simply means to remove it and repair it?

hvddrift avatar Jan 20 '19 10:01 hvddrift

Yes, remove it (you can find how to remove files in the docs) and than pair it again.

h4nc avatar Jan 20 '19 10:01 h4nc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 21 '19 10:03 stale[bot]

Yes, remove it (you can find how to remove files in the docs) and than pair it again.

This comment finally allowed me to solve my Aqara Temperature sensors not connecting to a router, but only to the main hub. It turns out, that if i first explicitly remove the sensor in MQTT, then allow pairing only to a specific router (by using the drop down button), the sensor would connect to the router.

It seems like the sensor remembers which hub/router it was connected to, and will not connect to any other router if you just press the button for 7(?) seconds. First explicitly removing it from MQTT solved this for me.

tuinstoelen avatar Dec 05 '22 09:12 tuinstoelen