zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Help setting up a router

Open ASchneiderBR opened this issue 8 years ago • 45 comments

Hello everyone!

I am having some difficulties setting a secondary CC2531 as a router.

I have a couple of devices (Xiaomi buttons and a cube) a bit far away from my router so I get link quality 0.

I've flashed it successfully wit this firmware and managed to pair my coordinator and plugged in between both coordinator and the devices.

The problem is that nothing has changed: still get 0 link quality and the only thing that shows on the log is something related to the cube: 0x00158D00010B2E3E.

Here is my log: https://pastebin.com/iRasDgmJ

I am using it with Hassio and the oficial addon with the latest CC2531 coordinator FW.

Do I need to pair those far away devices directly with the router?

The main reason to extend the range is because sometimes when I press the button a single time, for example, many messages are received (long click), very annoying:

2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long"}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long"}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long"}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long"}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long_release","duration":85}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long"}'
2018-9-19 23:33:44 - info: MQTT publish, topic: 'zigbee2mqtt/casa_xiaomi_botao_suite_01', payload: '{"battery":"100.00","voltage":3012,"linkquality":0,"click":"long_release","duration":47}'

You can see they are all sent at the same second...

Thanks a lot!

ASchneiderBR avatar Sep 21 '18 17:09 ASchneiderBR

This post https://community.home-assistant.io/t/zigbee2mqtt-getting-rid-of-your-proprietary-zigbee-bridges-xiaomi-hue-tradfri/52108/572 suggests that you need to re-pair your device to the router. But I have also seen somewhere that this shouldn't be necessary. Worth a try.

nickrout avatar Sep 22 '18 07:09 nickrout

Also, an end device need some time to find a new router. The device may sleep most time. So, you need to wake up your device (press a button on it).

ptvoinfo avatar Sep 22 '18 08:09 ptvoinfo

Thanks @nickrout and @ptvoinfo!

Someone said this on the router instructions:

image

I am not sure what to do here... I left the router plugged in for the last couple of days, Here is log: https://pastebin.com/FDnhRcMA

There are still no enhancements on link quality. The router itself shows as 0 quality.

Thanks!

ASchneiderBR avatar Sep 23 '18 00:09 ASchneiderBR

Yeah that was the contrary advice I had seen but couldn't find it. Hard to know what is right, but why don't you try pairing to the router and see?

nickrout avatar Sep 23 '18 05:09 nickrout

See also https://github.com/Koenkk/zigbee2mqtt/issues/402

nickrout avatar Sep 23 '18 05:09 nickrout

I pair all my new devices near the CC2531 coordinator and then I bring them to their final position. They connect automatically to the nearest CC2531 router.

kaelsaes avatar Sep 24 '18 13:09 kaelsaes

Yesterday evening I paired a new Xiaomi smoke sensor near a CC2531 router and it worked perfect. It was far away from my CC2531 coordinator.

So pairing should also work through routers...

kaelsaes avatar Sep 25 '18 04:09 kaelsaes

The main problem here: not all routers may retransmit pairing requests. So, you should be sure that all your routers works correctly. I prefer to pair devices near the coordinator.

ptvoinfo avatar Sep 25 '18 04:09 ptvoinfo

Hello again! Can someone that have successfully managed to flash both coordinator and router and made they work together post the links for the correct FW you had used? Thanks a lot!

ASchneiderBR avatar Sep 25 '18 14:09 ASchneiderBR

I used: http://ptvo.info/cc2531-based-router-firmware-136/ specifically CC2531-router-diag-usb.hex version (others didn't seem to work). Currently running a 32 node mesh with 3 CC2531 Routers and 1 CC2531 Coordinator. Seems to be running ok.

basmeerman avatar Sep 30 '18 20:09 basmeerman

Addition: Use the latest version for flashing see: https://github.com/Koenkk/zigbee2mqtt/issues/252#issuecomment-425373408

basmeerman avatar Sep 30 '18 21:09 basmeerman

I solved the tiresome topic "mesh network" with 2 Osram ZigBee Plugs.

Plug and play out of the box. The plugs paired independently and expanded my mesh network par excellence.

kaelsaes avatar Oct 12 '18 10:10 kaelsaes

I solved the tiresome topic "mesh network" with 2 Osram ZigBee Plugs.

Plug and play out of the box. The plugs paired independently and expanded my mesh network par excellence.

Would you please point out, how you managed to use the Osrams as routers. Do I need some speciall config, a refined ordering in the pairing steps or ...? Which firmware do you use on your coordinator?

I am facing a star of Osrams but end nodes only attaches to the coordinator in my environment. See...

unbenannt

I apprechiate assistance.

david-kracht avatar Oct 23 '18 19:10 david-kracht

@davekr8 Xiaomi devices do not connect to the osram router (has something to do with manufacturer ID which Xiaomi forces). You can use the CC2531/CC2530 router from the wiki instead.

Koenkk avatar Oct 24 '18 06:10 Koenkk

@koenkk

I replaced all (3) my CC2531 routers with 3 Osram plugs and my network (about 20 Xiaomi devices) works perfect - in contrast to earlier with the CC2531.

The Osram plugs and the CC2531 coordinator are distributed over 2 floors - where the Xiaomi devices never ever could reach the coordinator if your statement would be right.

I first plugged in a Osram plug near the CC2531 coordinator. It paired automatically within 20 seconds and a new device was created in FHEM.

Then I plugged in the second Osram plug far away from coordinator and within 20 seconds I had a second device in FHEM.

The same with the third Osram plug far far away from coordinator.

After approximately an hour all my Xiaomi devices worked like a charm with the 3 Osram plugs. I only had to wait and do nothing else.

The Osram plugs build up a ZigBee mesh network which works without any problems with Xiaomi devices.

kaelsaes avatar Oct 24 '18 06:10 kaelsaes

I solved the tiresome topic "mesh network" with 2 Osram ZigBee Plugs.

Plug and play out of the box. The plugs paired independently and expanded my mesh network par excellence.

I have done the same thing. I have a aqara temperature/humidity sensor and a aqara human body sensor somewhat further away from the coordinator, it looses connection most of the time. So I paired a Osram Lightify Plug to the coordinator and placed it in between the coordinator and the aqara devices but nothing changed :( The reception is still bad. I can control the lightify plug. I had the same issue when I put the router firmware in a 2530. reception did not improve.

For me this is the main reason not to use zigbee2mqtt for "production" It's just not reliable enough for me.

HA-TB303 avatar Oct 24 '18 07:10 HA-TB303

@michel72

Which Osram plug are you using?

I use this one:

https://www.amazon.de/Osram-schaltbare-fernbedienbar-Lichtsteuerung-kompatibel/dp/B074PZLX2P/ref=sr_1_1?ie=UTF8&qid=1540375548&sr=8-1&keywords=osram+plug

kaelsaes avatar Oct 24 '18 10:10 kaelsaes

Yup, I have the same one. Just plugged it in, paired it to the coordinator and verified if I can switch it on/off. It just doesn't route the zigbee signal to the other (xiaomi aqara) devices.

HA-TB303 avatar Oct 24 '18 11:10 HA-TB303

@michel72

Which Osram plug are you using?

I use this one:

https://www.amazon.de/Osram-schaltbare-fernbedienbar-Lichtsteuerung-kompatibel/dp/B074PZLX2P/ref=sr_1_1?ie=UTF8&qid=1540375548&sr=8-1&keywords=osram+plug

yes, all the same.

david-kracht avatar Oct 24 '18 12:10 david-kracht

@kaelsaes

The Osram plugs build up a ZigBee mesh network which works without any problems with Xiaomi devices.

it would be interesting to know, which firmware you are running on the coordinator.

david-kracht avatar Oct 24 '18 15:10 david-kracht