Zibee2mqtt with cc2531 stability issue

HI,
I new to home assistant. I just install zigbee2mtt with MQTT. The system is unstable and all the time disconnect from the dongle. Its works for few minutes and then lost connection.
I have HA V2021.6.6 and zigbee2mqtt V 1.20.1. My system have 20 device from Xiaomi. Please advise which log you need and how to get it,. My system all the time collapse.

Thanks

Xiaomi & Aqara Devices - Pairing & Keeping them connected

All devices are paired, but randomly my USB stick stop working and I need to reboot the all system. BTW, I’m using HA on old laptop with AH generic x86 installation I really don’t know what’s is wrong and why its so unstable. .

Make sure that your Zigbee usb stick is not connected to a USB 3.0 port, and that you are also using an extension cable, to keep it far from any possible interference.

1 Like

Thanks for advise. The stick is about 20cm from the LT and connected to a regular USB port. I have few CC2531 USB stick. I switched between them and the problem repeat itself. I really don’t know what do do next.

Maybe look at upgrading to a CC2652 stick

1 Like

I ordered one and I’m waiting for it. But I’m afraid that the same problem will return. I don’t see and clue why its all the time disconnected. I read many blogs using CC2531 and its looks like that this stick is working well for others.

Kind of sounds like a power issue.

If your running HA on a Rpi 2/3, make sure you have at least a 2.5 amp power supply. If your on a Rpi 4 it needs to be at least 3 amps.

In some cases a powered usb hub recommended.

I used Rsp4 with original power supply. Then switch from SDCARD to SSD , when the issue repeat I switched out to an old LT and give up the pi. Now I’m sure the problem is with the Zigbee networks. It could be the USB firmware. (I’m using the most updated one) or from the network itself.

There are many users outside using zigbee2mqtt with cc2531 (including me), no issues at all. I feel like this is a different hardware issue, not specifically to cc2531.

Thanks for your replay, but I’m using the recommended HW (Pi4 + CC2531) all the devices on the zigbee networks are ZB3, and identify by the zigbee2mqtt SW. So I realy don’t understand why the system collapse all the time. As I worte, above, I switch from Pi4 to laptop just to check if the issue is the Pi, but the problem repeat with the LT (Generic clean installation of x86). . I really need some help. Please advise if you need some logs to help and how to obtain thus logs.
Thanks

First enable excessive logging on your zigbee2mqtt instance following this: Debug | zigbee2mqtt.io

Logs directory is configured on settings/advanced page, find out your logs folder. You might have multiple files there , check the latest one and share them here.

If zigbee2mqtt is stopping because of this error, you can use process managers or pm2 to restart it again, which doesn’t solve the problem, but might mitigate it to some extent.

That is the limit for a CC2531. (for direct routes without any router in the system)

If you have multiple CC2531, flash one with router software, and flash your CC2531 with the source routing firmware.

1 Like

Thanks for your answers. I will try and feedback soon

Hi, I switch to source routing firmware. I still have issue of the network. Bellow my log, Can someone give me an hint whats is wrong?

Thanks

s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] socat.sh: executing…
[21:14:34] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing…
[21:14:34] INFO: MQTT available, fetching server detail …
[21:14:34] INFO: Previous config file found, checking backup
[21:14:34] INFO: Creating backup config in ‘/config/zigbee2mqtt/.configuration.yaml.bk’
[21:14:34] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks …
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:14:34] INFO: Handing over control to Zigbee2mqtt Core …

[email protected] start /app
node index.js
Zigbee2MQTT:warn 2021-07-13 21:14:46: permit_join set to true in configuration.yaml.
Zigbee2MQTT:warn 2021-07-13 21:14:46: Allowing new devices to join.
Zigbee2MQTT:warn 2021-07-13 21:14:46: Set permit_join to false once you joined all devices.
Zigbee2MQTT:error 2021-07-13 21:15:56: Publish ‘set’ ‘state’ to ‘Door Entry1’ failed: ‘Error: Command 0x00158d00054eadd7/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Timeout - 29117 - 1 - 3 - 6 - 11 after 10000ms)’
Zigbee2MQTT:error 2021-07-13 21:16:55: Publish ‘set’ ‘state’ to ‘Door Entry1’ failed: ‘Error: Command 0x00158d00054eadd7/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:17:34: Publish ‘set’ ‘state’ to ‘Entry Pole3’ failed: ‘Error: Command 0x00158d0005790ae1/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:17:41: Publish ‘set’ ‘state’ to ‘Door Entry1’ failed: ‘Error: Command 0x00158d00054eadd7/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:18:57: Failed to execute LQI for ‘Pool Pole1’
Zigbee2MQTT:error 2021-07-13 21:19:42: Failed to execute LQI for ‘Entry Pole3’
Zigbee2MQTT:error 2021-07-13 21:20:16: Failed to execute LQI for ‘Door Entry1’
Zigbee2MQTT:error 2021-07-13 21:20:42: Failed to execute LQI for ‘Down Stairs’
Zigbee2MQTT:error 2021-07-13 21:22:10: Failed to execute LQI for ‘Dining Table’
Zigbee2MQTT:error 2021-07-13 21:22:40: Failed to execute LQI for ‘Pool Balcony’
Zigbee2MQTT:error 2021-07-13 21:29:34: Publish ‘set’ ‘state’ to ‘Door Entry1’ failed: ‘Error: Command 0x00158d00054eadd7/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:31:36: Publish ‘set’ ‘state’ to ‘Down Stairs’ failed: ‘Error: Command 0x00158d00054eae8f/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:31:56: Publish ‘set’ ‘state’ to ‘Down Stairs’ failed: ‘Error: Command 0x00158d00054eae8f/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:32:17: Publish ‘set’ ‘state’ to ‘Down Stairs’ failed: ‘Error: Command 0x00158d00054eae8f/2 genOnOff.off({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:32:32: Publish ‘set’ ‘state’ to ‘Dining Table’ failed: ‘Error: Command 0x00158d0005c1318a/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:33:32: Publish ‘set’ ‘state’ to ‘Door Entry1’ failed: ‘Error: Command 0x00158d00054eadd7/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:37:58: Publish ‘set’ ‘state’ to ‘Pool Pole1’ failed: ‘Error: Command 0x00158d00054eaf2f/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:39:38: Publish ‘set’ ‘state’ to ‘Pool Pole1’ failed: ‘Error: Command 0x00158d00054eaf2f/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:42:44: Publish ‘set’ ‘state’ to ‘Pool Pole1’ failed: ‘Error: Command 0x00158d00054eaf2f/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:47:08: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:47:29: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:47:49: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/1 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:48:09: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/2 genOnOff.on({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:48:30: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/1 genOnOff.off({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:48:50: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/2 genOnOff.off({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’
Zigbee2MQTT:error 2021-07-13 21:49:11: Publish ‘set’ ‘state’ to ‘Pool Balcony’ failed: ‘Error: Command 0x00158d0006269440/2 genOnOff.off({}, {“sendWhenActive”:false,“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’

First you pair the router to your coordinator. Then you have to re-pair your end-devices close to your router.

I looked on the zigbee2mqtt map, It looks like only 5 devices are connected directly to the CC2531. The rest are going through a routing devices. So I don’t this is the issue. I relay need some help to figure out why the system is not stable.

Starting with a clean slate can help, i am not able to see anything useful from logs, at least nothing about shutting down. Maybe, you can reset all your network and go incrementally and wait couple of days between each step. Delete network data, add fundamentals/top needed ones first, wait couple of days and add a bit more and wait couple of days. Let’s see when things go bad

Hi,
Thanks for advise, I started from clean installation on an old laptop. The network look a bit more stable after a week, however from time to time I’m still getting an error messages from the zigee2mqtt that it can not set a device. Its a random devices, sometime they works and sometimes not. So I’m not sure what is wrong. I will continue to monitor the network, and hope it will be more stable after one more week. I’m really don’t know why the networks act like this. I will send clean log in a week, hope its can help to analyze the issue.

In the meantime, take a look at this: ZigBee and WiFi Coexistence — MetaGeek

I was lazy to move zigbee channel above 11, so i switched my wifi channels down below 10.