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

1 Like

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

What temperature sensors are these ?

Xiaomi aqrara or mijia