Devices unreachable and routers offline

Hi there,

I have one CC2531 coordinator plugged with a USB cable in an Odroid XU4 at basement. My network is pretty simple, two routers CC2530.ROUTER located at ground floor and a CC2530.ROUTER at first floor. The distance among them is not more that 4 meters (through walls and stairs).
Then I have severa xiaomi temperature and humidity sensors I use for controlling the ventilation.

During the set up I had no problem. I started pairing routers in the very first instant and then slowly adding more and more devices. Initially it works well. The image shows the initial situation (after configuration and the final when everything break)

However, despite my efforts there is no way to keep this as a reliable network, sometimes it lasts one week other times just few days or hours, the thing is that routers become offline at a given time and devices disconnect leading to the following network diagram (in which only two devices are connected - those at basement - and the rest are unlinked):
image

I need help, I don’t know what is going on. Any help will be appreciated. Thanks

My configuration:

the only remarkable information is that I have a network key defined, enabled report, log and last seen.

My log:

9/21/2019, 12:12:41 AM - info: Starting zigbee2mqtt version 1.5.1 (commit #ac3b924)
9/21/2019, 12:12:41 AM - info: Starting zigbee-shepherd
9/21/2019, 12:12:41 AM - debug: Using zigbee-shepherd with settings: '{"net":{"panId":6754,"extPanId":[221,221,221,221,221,221,221,221],"channelList":[11],"precfgkey":"HIDDEN"},"dbPath":"/opt/zigbee2mqtt/data/database.db","coordBackupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","sp":{"baudRate":115200,"rtscts":true}}'
9/21/2019, 12:12:41 AM - info: Error while starting zigbee-shepherd, attempting to fix... (takes 60 seconds) (Error: Error: Device or resource busy, cannot open /dev/ttyACM0)
9/21/2019, 12:13:41 AM - info: Starting zigbee-shepherd
9/21/2019, 12:13:44 AM - info: zigbee-shepherd started
9/21/2019, 12:13:44 AM - info: Coordinator firmware version: '20190608'
9/21/2019, 12:13:44 AM - debug: zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":"11","panId":6754,"extPanId":[221,221,221,221,221,221,221,221],"ieeeAddr":"0x00124b0018ed169d","nwkAddr":0},"firmware":{"transportrev":2,"product":0,"version":"2.6.3","revision":20190608},"startTime":1569017624,"joinTimeLeft":0}
9/21/2019, 12:13:44 AM - info: Currently 8 devices are joined:
9/21/2019, 12:13:44 AM - info: 0x00124b001bb85cca (0x00124b001bb85cca): CC2530.ROUTER - Custom devices (DiY) [CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/) (Router)
9/21/2019, 12:13:44 AM - info: 0x00124b001bb84baa (0x00124b001bb84baa): CC2530.ROUTER - Custom devices (DiY) [CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/) (Router)
9/21/2019, 12:13:44 AM - info: ground-floor-bath (0x00158d0002797b0e): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
9/21/2019, 12:13:44 AM - info: first-floor-kids-bath (0x00158d0002772be2): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
9/21/2019, 12:13:44 AM - info: first-floor-main-bath (0x00158d0002733e2c): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
9/21/2019, 12:13:44 AM - info: basement-laundry-room (0x00158d0002733e25): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
9/21/2019, 12:13:44 AM - info: basement-storage-gym-room (0x00158d0002772a3f): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
9/21/2019, 12:13:44 AM - info: ground-floor-bath-switch (0x00158d0002059fb4): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
9/21/2019, 12:13:44 AM - warn: `permit_join` set to  `true` in configuration.yaml.
9/21/2019, 12:13:44 AM - warn: Allowing new devices to join.
9/21/2019, 12:13:44 AM - warn: Set `permit_join` to `false` once you joined all devices.
9/21/2019, 12:13:44 AM - info: Zigbee: allowing new devices to join.
9/21/2019, 12:13:44 AM - info: Connecting to MQTT server at mqtt://localhost
9/21/2019, 12:13:44 AM - debug: Using MQTT client ID: 'zigbeemqtt'
9/21/2019, 12:13:45 AM - debug: Not setting up reporting for CC2530 router
9/21/2019, 12:13:45 AM - debug: Not setting up reporting for CC2530 router
9/21/2019, 12:13:45 AM - info: zigbee-shepherd ready
9/21/2019, 12:13:45 AM - info: Connected to MQTT server
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00124b001bb85cca', payload '{"state":true,"led_state":false,"linkquality":15,"last_seen":1569008682894,"description":"0/0x00124B0018ED169D","type":"COORD","rssi":1,"device":{"ieeeAddr":"0x00124b001bb85cca","friendlyName":"0x00124b001bb85cca","type":"Router","nwkAddr":65248,"manufId":4447,"manufName":"LUMI","powerSource":"Mains (single phase)","modelId":"lumi.router","hwVersion":1,"swBuildId":"unknown","dateCode":"2018-09-26","status":"offline"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00124b001bb85cca', payload '{"state":true,"led_state":false,"linkquality":15,"last_seen":1569008682894,"description":"0/0x00124B0018ED169D","type":"COORD","rssi":1,"device":{"ieeeAddr":"0x00124b001bb85cca","friendlyName":"0x00124b001bb85cca","type":"Router","nwkAddr":65248,"manufId":4447,"manufName":"LUMI","powerSource":"Mains (single phase)","modelId":"lumi.router","hwVersion":1,"swBuildId":"unknown","dateCode":"2018-09-26","status":"offline"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00124b001bb84baa', payload '{"state":true,"led_state":false,"linkquality":13,"last_seen":1569008682980,"description":"60224/0x00158D0002797B0E","type":"CHILD_RFD","rssi":110,"device":{"ieeeAddr":"0x00124b001bb84baa","friendlyName":"0x00124b001bb84baa","type":"Router","nwkAddr":33261,"manufId":4447,"manufName":"LUMI","powerSource":"Mains (single phase)","modelId":"lumi.router","hwVersion":1,"swBuildId":"unknown","dateCode":"2018-09-26","status":"offline"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/ground-floor-bath', payload '{"humidity":61.17,"linkquality":13,"last_seen":1569006119836,"temperature":24.43,"pressure":936,"battery":100,"voltage":3055,"device":{"ieeeAddr":"0x00158d0002797b0e","friendlyName":"ground-floor-bath","type":"EndDevice","nwkAddr":60224,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","hwVersion":30,"swBuildId":"3000-0001","dateCode":"20161129","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/first-floor-kids-bath', payload '{"temperature":24.86,"linkquality":15,"last_seen":1569006132409,"humidity":56.97,"pressure":935,"battery":91,"voltage":2985,"device":{"ieeeAddr":"0x00158d0002772be2","friendlyName":"first-floor-kids-bath","type":"EndDevice","nwkAddr":14991,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","hwVersion":30,"swBuildId":"3000-0001","dateCode":"20161129","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/first-floor-main-bath', payload '{"temperature":25,"linkquality":15,"last_seen":1569006260265,"humidity":58.62,"pressure":936.1,"battery":100,"voltage":3185,"device":{"ieeeAddr":"0x00158d0002733e2c","friendlyName":"first-floor-main-bath","type":"EndDevice","nwkAddr":26010,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","hwVersion":"unknown","swBuildId":"unknown","dateCode":"unknown","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/basement-laundry-room', payload '{"temperature":24.07,"linkquality":92,"last_seen":1569016091678,"humidity":61.11,"pressure":936.9,"battery":86,"voltage":2975,"device":{"ieeeAddr":"0x00158d0002733e25","friendlyName":"basement-laundry-room","type":"EndDevice","nwkAddr":1120,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","hwVersion":30,"swBuildId":"3000-0001","dateCode":"20161129","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/basement-storage-gym-room', payload '{"temperature":23.55,"linkquality":94,"last_seen":1569015846029,"humidity":60.93,"pressure":936,"battery":100,"voltage":3145,"device":{"ieeeAddr":"0x00158d0002772a3f","friendlyName":"basement-storage-gym-room","type":"EndDevice","nwkAddr":19211,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","hwVersion":30,"swBuildId":"3000-0001","dateCode":"20161129","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/ground-floor-bath-switch', payload '{"linkquality":23,"last_seen":1568972690695,"battery":100,"voltage":3245,"device":{"ieeeAddr":"0x00158d0002059fb4","friendlyName":"ground-floor-bath-switch","type":"EndDevice","nwkAddr":10000,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch.aq2","hwVersion":2,"swBuildId":"3000-0001","dateCode":"20161128","status":"online"}}'
9/21/2019, 12:13:45 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.5.1","commit":"ac3b924","coordinator":20190608,"log_level":"debug","permit_join":true}'
9/21/2019, 12:13:45 AM - debug: Mounted the cieApp (epId 11)
9/21/2019, 12:16:07 AM - debug: Received zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2547}}' of device 'lumi.weather' (0x00158d0002797b0e) of endpoint 1
9/21/2019, 12:19:14 AM - debug: Received MQTT message on 'zigbee2mqtt/bridge/networkmap' with data 'graphviz'
9/21/2019, 12:19:14 AM - info: Starting network scan includeRoutes='0'...
9/21/2019, 12:19:14 AM - debug: Queing network scans for device: '0x00124b0018ed169d'
9/21/2019, 12:19:14 AM - debug: Queing network scans for device: '0x00124b001bb85cca'
9/21/2019, 12:19:14 AM - debug: Queing network scans for device: '0x00124b001bb84baa'
9/21/2019, 12:19:14 AM - debug: lqi scan: '0x00124b0018ed169d' with '1' neighbors
9/21/2019, 12:19:14 AM - debug: Outstanding network lqi scans for devices: '0x00124b001bb85cca 0x00124b001bb84baa'
9/21/2019, 12:19:14 AM - debug: Outstanding network rtg scans for devices: ''
9/21/2019, 12:19:17 AM - warn: Network scan timeout, skipping outstanding lqi scans for '0x00124b001bb85cca 0x00124b001bb84baa'

Thanks

If you restart Zigbee2MQTT what happens? Do the devices reconnect, or stay disconnected?

Hi,

I waited a bit todo ser What happens before posting. It turns out sometimes restarting the service heals the system but they go back offline later on. I tried around 10 times, reflashed several times and repair several times also. But it always ends up breaking up. No reliability.

I googled around and saw there are many people suffering this problem. Any idea to overcome the problem?

The picture shows how services suddenly stop reporting

Thanks

2 Likes

Any hint? I’m still having the same problems. Any progress?

What temperature sensors are these ?

Xiaomi aqrara or mijia

Just for you to know. I quitted. I moved to deconz+openhab2.

I will give a try again zigbee2mqtt in a future.

Thanks anyway for your dedication

That’s a shame.

I persevered, but only after ditching the CC2531 as coordinator and using a CC26X2R1.

In my opinion and experience the CC2531 is not up to the job of sustaining a reliable Zigbee network of maybe more than 10 very local devices. I think promoting these devices as ‘good enough’ is harming people’s opinion of Zigbee2MQTT.

With the CC26X2R1 my network is now rock solid with Zigbee2MQTT.

I also found that my home 2.4Ghz WiFi affected my Zigbee network more than I thought. If you have moved to a new/different Zigbee coordinator device on a different channel it could just be the change in channel that’s improved the reliability of your Zigbee network. Or that the coordinator simply has more RF power than the CC2531 and is able to be heard despite interference with WiFi. This is where the CC26X2R1 beats the CC2531 as it has a much better RF stage. Even just using the onboard PCB antenna I have no issues now with the CC26X2R1.

From what I have learnt while migrating off my SmartThings to Zigbee2MQTT is that most of the problems are hardware & RF related, not software and you can’t blame Zigbee2MQTT for that. With good hardware Zigbee2MQTT is solid.

Then it just comes down to the breadth of Zigbee devices supported by a platform. Zigbee2MQTT doesn’t support all of my endpoints, but it’s mainly no name RGBW LED strip drivers and I can still use those through my SmartThings/Hue setup. For all of my standard light bulbs, sockets, buttons and sensors, Zigbee2MQTT is doing an excellent job.

Stuart

2 Likes

Thanks for your post, I will give a try to the CC26X2R1 as coordinator before I ditch Zigbee2mqtt, what makes me mad is that CC2531 is still listed as a “good” coordinator for the network, which is not. I’ve been in a nightmare everyday, re-pair, checking logs, flashing coordinator, flashing router… whatever…
I have 48 zigbee devices.
Again, thanks.

That’s a shame to hear this hasn’t worked for you guys. I’ve just moved from Mijia Gateway to CC2531 with 21 devices connected and haven’t had a drop; in fact I think it’s better than the gateway I ran for 4 years. I only have 2 devices downstairs that I will pair with a router so the linkquality is above 30; the outdoors temp. sensor has only dropped once but since replacing the battery its’ been solid (and also it’s not winter any more and the temp sensor isn’t at ~5d C).

Someone mentioned above that the WiFi interferes, ironically since moving everything to zigbee2mqtt, my UniFi network has gone from 80% “good” to 98% “excellent”; the 2.4G is obviously on a different channel (fluke, as I didn’t change it nor did I go to Zigbee2MQTT to “fix” WiFi issues) but so far no issues. I consider myself one of the lucky ones I guess.