I believe I did the configuration right of my Zigbee2MQTT installation (Sonoff USB 3.0 plus dongle, RPI 4B), everything shows up just fine. Just when I click the "permit join(all) button I however get the message
Request 'zigbee2mqtt/bridge/request/permit_join' failed with error: 'SREQ '--> ZDO - mgmtPermitJoinReq - {"addrmode":15,"dstaddr":65532,"duration":254,"tcsignificance":0}' failed with status '(0xc2: NWK_INVALID_REQUEST)' (expected '(0x00: SUCCESS)')'
When I set the permit_join parameter to true in the configuration file, no devices can be added, but there is also no error message. However in that case I can not disable it and I get the message
Request 'zigbee2mqtt/bridge/request/permit_join' failed with error: 'SRSP - AF - dataRequestExt after 6000ms'
Also, after I restart the Zigbee2MQTT service when I did that, I have to restart HAS as well. Otherwise I get 502 bad gateway
Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py”, line 826, in request response = await response_future asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 152, in async_initialize self.application_controller = await app_controller_cls.new( File “/usr/local/lib/python3.9/site-packages/zigpy/application.py”, line 69, in new await app.startup(auto_form) File “/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py”, line 175, in startup return await self._startup( File “/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py”, line 188, in _startup await znp.connect() File “/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py”, line 554, in connect await self.nvram.determine_alignment() File “/usr/local/lib/python3.9/site-packages/zigpy_znp/nvram.py”, line 35, in determine_alignment value = await self.osal_read(nvids.OsalNvIds.NWKKEY, item_type=t.Bytes) File “/usr/local/lib/python3.9/site-packages/zigpy_znp/nvram.py”, line 170, in osal_read length = (await self.znp.request(c.SYS.OSALNVLength.Req(Id=nv_id))).ItemLen File “/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py”, line 826, in request response = await response_future File “/usr/local/lib/python3.9/site-packages/async_timeout/init.py”, line 128, in aexit self._do_exit(exc_type) File “/usr/local/lib/python3.9/site-packages/async_timeout/init.py”, line 203, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError
Any further explanation on what could cause this, I’m having the same issue. I do not have ZHA installed. I updated the FW on the Sonoff dongle to this one: https://github.com/Koenkk/Z-Stack-firmware.
This is my config.yaml within the zigbee2mqtt folder:
I thought I would update how I fixed this issue. It was the ZHA install as mentioned above, but, what I didn’t realize is that when I plugged in the Sonoff dongle, HA auto discovered the hardware and asked if I wanted to configure it. When I clicked yes, it installed ZHA. It was not mentioned that this is how ZHA was installed on other people’s systems, but this is how it got on mine. Once I deleted the integration that was installed, everything worked as it should. I hope this helps anyone having the same issue and are unaware that the discovered integration will break Zigbee2MQTT.