Z2MQTT constant latency and disconnecting

Hello HA community,

I kept reading online about all the benefits of Z2mqtt over zha, so I went through the very manual process to migrate 53 devices from zha to Z2mqtt. I also upgraded my zigbee coordinator from the HUBZ to the Sonoff 3.0 dongle and updated the firmware to the latest software. - now to my issue…

Many of my devices are constantly going in and out of connection. Even if they are connected, I go to trigger an action and there’s a range of latency from 1 to sometimes 30 seconds…if ever triggering at all. This happens with a wide range of brands. All of which worked perfectly with ZHA. Making me regret changing something that wasn’t broke.

I’ve tried everything I’ve read on many many forums:

  • USB extensions
  • change wifi channel
  • added many routers to the network to make it stronger
  • messed with a lot of settings
  • unpaired and repaired many devices over and over
  • etc…etc…

Nothing has worked.

So I did an experiment and got the exact same coordinator with the exact same software - took a handful of the devices off the Z2M network and put them on ZHA with that exact same coordinator and boom, they worked flawlessly.

I’m at a loss. Surely all the praise I’ve read about Z2M isn’t false but for whatever reason, its a very poor experience for my network.

So, before I grind out another migration back to ZHA, I’m asking this awesome community for any ideas on how I can fix this problem.

Logs? Where are your logs?

here’s a sample of my entire log - I played with a few devices, switching them on and off…they were all doing the same thing. Sometimes works, then laggy, then not at all…

debug 2022-06-10 19:28:18Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":83}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:18MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":21,"power":8.3,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:21Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":12}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:21MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.2,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:25Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":124}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:25MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":0,"power":12.4,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:26Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":18}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:26MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":61,"power":1.8,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:26Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:26Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:28Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:28Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:28Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":117}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:28MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":127,"power":11.7,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:29Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":18}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:29MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.8,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:29Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:29Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:30Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:30Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:30Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:30Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:30Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:30Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:31Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":18}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:31MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.8,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:33Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"OFF"}'
debug 2022-06-10 19:28:33Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:33Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":103}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:33MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":80,"power":10.3,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:34Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:34Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:34Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:34Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:34Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:34Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:34Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:34Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:35Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:35Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:35Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:35Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:35Saving state to file /config/zigbee2mqtt/state.json
debug 2022-06-10 19:28:35Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:35Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:35Received MQTT message on 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT/set' with data '{"state":"ON"}'
debug 2022-06-10 19:28:35Publishing 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT'
debug 2022-06-10 19:28:38Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":12}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:38MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.2,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:38Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":110}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:38MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":83,"power":11,"state":"ON","update":{"state":"idle"},"update_available":null}'
error 2022-06-10 19:28:38Publish 'set' 'state' to 'Kitchen - Plug 1 - Coffee - Z2MQTT' failed: 'Error: Command 0x00124b001f98454b/1 genOnOff.on({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SREQ '--> ZDO - extRouteDisc - {"dstAddr":52722,"options":0,"radius":30}' failed with status '(0xc7: NWK_TABLE_FULL)' (expected '(0x00: SUCCESS)'))'
debug 2022-06-10 19:28:38Error: Command 0x00124b001f98454b/1 genOnOff.on({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SREQ '--> ZDO - extRouteDisc - {"dstAddr":52722,"options":0,"radius":30}' failed with status '(0xc7: NWK_TABLE_FULL)' (expected '(0x00: SUCCESS)')) at Object.func (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:322:27) at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)
info 2022-06-10 19:28:39MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":21,"state":"ON"}'
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:39MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":21,"state":"ON"}'
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:39Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:39MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":21,"state":"ON"}'
info 2022-06-10 19:28:39MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":21,"state":"ON"}'
debug 2022-06-10 19:28:41Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":18}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:41MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":54,"power":1.8,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:43Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":117}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:43MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":58,"power":11.7,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:46Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":12}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:46MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.2,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:51Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":12}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:51MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.2,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:55Received Zigbee message from 'Safe Room - Plug 1 - Battery Charger - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":103}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:55MQTT publish: topic 'zigbee2mqtt/Safe Room - Plug 1 - Battery Charger - Z2MQTT', payload '{"energy":0.22,"linkquality":80,"power":10.3,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:56Received Zigbee message from 'Spa - Sauna Switch - Z2MQTT', type 'attributeReport', cluster 'seMetering', data '{"instantaneousDemand":18}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:56MQTT publish: topic 'zigbee2mqtt/Spa - Sauna Switch - Z2MQTT', payload '{"energy":1.83,"linkquality":58,"power":1.8,"state":"ON","update":{"state":"idle"},"update_available":null}'
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:57MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":25,"state":"ON"}'
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
debug 2022-06-10 19:28:57Received Zigbee message from 'Kitchen - Plug 1 - Coffee - Z2MQTT', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:57MQTT publish: topic 'zigbee2mqtt/Kitchen - Plug 1 - Coffee - Z2MQTT', payload '{"linkquality":21,"state":"ON"}'
debug 2022-06-10 19:28:58Received Zigbee message from 'Safe Room - Thermo - Z2MQTT', type 'attributeReport', cluster 'msTemperatureMeasurement', data '{"measuredValue":2811}' from endpoint 1 with groupID 0
info 2022-06-10 19:28:58MQTT publish: topic 'zigbee2mqtt/Safe Room - Thermo - Z2MQTT', payload '{"battery":100,"humidity":42.27,"linkquality":105,"pressure":984,"temperature":28.11,"voltage":3075}'
error 2022-06-10 19:46:07Publish 'set' 'state' to 'Kohens Room - Plug 1 - Z2MQTT' failed: 'Error: Command 0x00124b0023b77332/1 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 20276 - 1 - 96 - 6 - 11 after 10000ms)'

also note, link quality has no bearing either - I have devices sitting next to the coordinator at nearly 200 linkquality and it doesn’t matter.

Sounds like you have tried a lot. And, indeed very strange.

I have a similar setup, a RPi, a sonoff 3.0 and use Z2M (I actually migrated from ZHA to Z2M and find it better). Not that it helps you:-(

This is a long shot idea, as it sounds like you have tried all the obvious interference and cable externder stuff.

When I moved from Conbee/ZHA to Sonoff/Z2M I actually did a first migration test that failed. I believe you might see something similar. I tried to stay on ZHA, just replace the coordinator and repair the devices. This failed miserably and my entire zigbee setup was down for a full day before a restore and repair of a number of devices brought back my Conbee/ZHA network. I believe it is due to some of the devices not re-pairing correctly and creating a lot of noice on the zigbee network.

So, what worked for me was to have ZHA running and Z2M running at the same time. ZHA on channel 15 (standard) and Z2M on channel 13 (11 is the standard, however I use it for something else). Further I changed the PANID on Z2M. Was meant as a test-setup, enabling me to move a few devices, and have both zigbee networks running at the same time. I have moving all devices and remove the Conbee/ZHA, as I like Z2M better. I believe it is more stable, however this is a subjective statement as I changed a lot in one go.

All this do not help you now, im aware. The idea is that you have some devices not behaving correctly. They make valid zigbee traffic which ends as noise in your new setup.

1 Like

Thanks for the info - this has me thinking a bit on a few ideas to try. I really like the Z2M extra functionality, so I’m going to keep trying for a few days.

OK - your comment motivated me to try something that WORKED!

Its a pain, but, I tried the following:

  • delete the device from Z2mqtt
  • re-pair with ZHA
  • delete that device from zha
  • do a hard reset on the device
  • THEN pair back with z2mqtt

What I have learned is when switching zigbee platforms, you HAVE to make sure the device has a hard reset after disconnecting from ZHA. I’m guessing there’s some carry over from the previoys pairing that causes all kinds of connection issues.

I hope this helps someone else bc I see a lot of migrating from zha to z2mqtt out there.

The other advice I would give is make sure your USB extender is powered. It made a huge difference in my connection quality. I didn’t have any devices above a 200 link quality score on the non powered usb extension cord - after, I have nearly a dozen over 230.

2 Likes

How are you finding the stability and performance with the Sonoff 3.0? I brought one of these and have been playing about with it on a test machine and have been thinking about migrating my 53 devices over from my HUSB-ZB stick. From what I can gather the best way to do this is to install Zigbee2MQTT and have the 2 networks running in parallel and do the following on one device at a time:

  1. Remove the device from the ZHA network using the Zigbee integration
  2. Perform a hard reset of the device
  3. Add the device to Zigbee2MQTT ensuring the naming structure is identical so all automations will continue to work
  4. Once all devices have been migrated disable the ZHA integration

From what I have read it’s ok to have ZHA & Zigbee2MQTT running at the same time while the migration takes place, this would mean I could do it over several days and not have to worry about breaking all of my automations and upsetting everyone in the house lol.

Please let me know if I’m missing anything

Richard

I actually have 2 zigbee networks now - Z2M with the Sonof and ZHA with TubeZB. I started as a experiment which one performed the best and I have just kept them up to have the option - some devices work better with different networks.

Your process is dead on. The one note I would say is make sure they are on different zigbee channels to start. That’s easy to find in Z2M but I dont believe ZHA shows that (I could be wrong). Do a little google search to find that answer. I think they both come out the box on different channels, but just make sure - if you have to change channels later, you have to completely start over.

The other note is, if the entity names are the same, everything should work, but I would test this a good bit before pushing a lot of devices over just in case it doesnt go as planned.

Good luck!

Thanks for the reply,

My HUSBZB stick is on channel 11 (I changed that quite a while ago as I was getting WiFi interference) and I currently have the Sonoff on channel 20 while I am experimenting.

I am going to have a go with few devices this weekend and see how it goes. I like the fact that I can pair new devices with certain routers. I have an Ikea plug on every floor and quite a few light bulbs that act as routers too so it will be good to pick where I want the non routers to connect.

1 Like

Hi kksligh

I was reading and was curious about what you mean “USB powered extender” can you explain to me or show me what USB extender are you using

Thank you

There are USB extenders that are just cords…but you can get an extender that is a cord that includes power - it has to be plugged in. In my experience, i the powered version worked better.

Here’s one i purchased - Plugable 5 Meter (16 Foot) USB 3.0 Active Extension Cable with AC Power Adapter and Back-Voltage Protection https://a.co/d/9WxMSp7

Thank you

Definetly going to add this to my setup