-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received an unhandled command: AF.DataConfirm.Callback(Status=<Status.SUCCESS: 0>, Endpoint=1, TSN= #60101
Comments
Hey there @dmulcahey, @Adminiuga, mind taking a look at this issue as it has been labeled with an integration ( zha documentation |
What i can remember is the |
WiFi scanners can pick up WiFi networks but they won't tell you about other sources of interference, such as USB 3.0 ports, Raspberry Pis, 2.4GHz routers, etc. Run the energy scan tool (https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#energy-scan) and confirm that your network is actually on channel 20, the current network settings will be in your
The request confirmation timeout is currently 8 seconds. If it takes longer than that for a device to respond, zigpy-znp gives up on expecting a response. However, it seems like a response is eventually sent back, causing that warning to be logged. It should probably be moved to the Can you enable https://www.home-assistant.io/integrations/zha/#debug-logging and post your full log after you get a couple of these? It would be helpful to know how long some of your devices take to respond, so that I can potentially increase the timeout. |
Is the device causing these unexpected confirmations a zigbee end device or a router? |
Thank all of you for your help.
Here are the home-assistant.log for today
Here are a energy-scan of my network after I shutdown my Deco mesh network which, used the channels that were not crowded on the 2.4 MHz channels. I tried to configure the deco to only use 5 MHz, but the app WiFiAnalyzer says the routers continue to use 2.4 MHz channels. So I have shut it down for the moment. Now I have only two routers running (SSID Telenor0432orm: Zyxel and SSID Telenor0432ormute: Tp link), which are configured to use channel 1 on 2.4 MHZ. Here is a WiFiAnalyzer picture of the WiFi channels in use at the moment. As you can see I have a router in the neighborhood which use channel 11, but it is a weak signal.
How can I confirm this. Can I trust the energy-scan information? The energy-scan shows that the network is crowded around channel 23 and 13. I have configured zha to use channel 25, but it looks like I should be using channel 20. I get sometimes "MAC_CHANNEL_ACCESS_FAILURE" in the log, so I have interference still. I have tried to find the 2.4 MHz interference from other sources than Wi-Fi, but I have not yet found the interference. Maybe it is my neighbours routers which gives me problems?
I am not very good reading logs, but from the logs it looks like the problems are maybe from Ikea drivers I have in my kitchen. https://www.zigbee2mqtt.io/devices/ICPSHC24-30EU-IL-1.html . Can you confirm this from the homeassistant.log? |
Thanks for the debug log, I think I've identified the bug causing the warnings. If you want to try out the fix, follow the installation instructions here but use the following config: pypi:
- git+https://github.com/puddly/zigpy-znp.git@puddly/background-req-timeout-bug
- zigpy==0.41.1 # I think this might be necessary as well As for your second issue, the channel access failures seem to occur when you send a few multicast requests in a row and then try sending a unicast request. 2021-11-22 23:19:17 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Group: 1>, address=0x0004), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=6, TSN=167, Options=<TransmitOptions.NONE: 0>, Radius=0, Data=b'\x01\xA7\x01')
2021-11-22 23:19:17 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Group: 1>, address=0x0005), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=6, TSN=168, Options=<TransmitOptions.NONE: 0>, Radius=0, Data=b'\x01\xA8\x01')
2021-11-22 23:19:17 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.MAC_CHANNEL_ACCESS_FAILURE: 225>, Endpoint=1, TSN=168) Maybe the default multicast radius of |
Thanks for the fix. |
My mistake. It's just |
I have now performed a backup and restore from my old Intel nuc i5 to a raspberry pi 4. After restore I installed the fix. So now I'm happy. The case can be closed for me. |
The problem
Hello. I have migrated from z2m to zha because I like the native integration of zha. But I get these warning and error logs everytime I restart HA and when HA is running. When I used z2m I did not get any error og warning as I have with zha now.
I have tried a lot of things to get rid of the error and warning logs.
The coordinator is a Zigbee Usb dongle (RF-STAR RF-BM-2652P2: https://github.com/egony/cc2652p_cc1352p_RF-STAR/tree/main/firmware/coordinator) attached to a usb2 port with a 3 meter usb extension cable trying to reduce interference.
I have configured my 2.4 Ghz Wi-Fi network to use channel 1 and the coordinator to use channel 25. I have used WiFiAnalyzer on my mobile for checking the channels used on the Wifi. My neightbors use wifi routers configured with channels 11 and 6 and sometime I think I get interference from them. The signals are weak (-82 dBm), but maybe they interfere with my zigbee signals. Sometimes I get in the log "TXStatus.MAC_CHANNEL_ACCESS_FAILURE" in the log, but not so often as "Received an unhandled command:".
I follow the advice from bug report zigpy/zigpy-znp#100, where it might be problems with mains-powered device that are offline. It was two devices which was offline, but after removing them the log was coming back. I have in my Zigbee network Hue and Ikea lamps, Ikea repeters, one Ikea blind, and three Zigstart routers with firmware 20 dbm power (https://github.com/egony/cc2652p_cc1352p_RF-STAR/tree/main/firmware/router) + other main power routers from slash.
More of the log here:
https://gist.github.com/overas/d0e7f2ad7161a103ef13665c9489fc33
Hope somebody can help me.
What version of Home Assistant Core has the issue?
core-2021.11.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
zha or zigpy znp
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: