home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.26k stars 29.86k forks source link

ZHA - "Unknown application frame ... This is a bug!" error setting up ITEAD SONOFF Zigbee ezsp dongle #107828

Closed scotte closed 4 months ago

scotte commented 8 months ago

The problem

Getting the error WARNING (MainThread) [bellows.ezsp.protocol] Unknown application frame 0x59FD received: b'3f' (b'024289fd593f'). This is a bug! while trying to configure a brand new ITEAD SONOFF Zigbee ezsp dongle.

~While a WARNING in the log, it seems like it might be a real error. After retrying a few times, hass seemed to show the device, but doing much of anything in the device configuration would throw unspecific errors in the UI and exceptions such as No gateway object exists in the log, and in the main integration page it shows Failed setup, will retry.~ Eventually it seems to work itself out. I've seen the same thing happen when doing some operations (such as enabling LGI and RSSI on devices) - but not when pairing or otherwise controlling - and even then it's inconsistent and eventually the configuration errors go away and things seem stable. Is this bit related to the warning message? Maybe, maybe not - I have no idea.

dmesg:

[Thu Jan 11 14:25:32 2024] usb 5-3.1.1: New USB device found, idVendor=1a86, idProduct=55d4, bcdDevice= 4.42
[Thu Jan 11 14:25:32 2024] usb 5-3.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Thu Jan 11 14:25:32 2024] usb 5-3.1.1: Product: SONOFF Zigbee 3.0 USB Dongle Plus V2
[Thu Jan 11 14:25:32 2024] usb 5-3.1.1: Manufacturer: ITEAD
[Thu Jan 11 14:25:32 2024] usb 5-3.1.1: SerialNumber: 20231121XXXXXX
[Thu Jan 11 14:25:32 2024] cdc_acm 5-3.1.1:1.0: ttyACM0: USB ACM device
[Thu Jan 11 14:25:32 2024] usbcore: registered new interface driver cdc_acm
[Thu Jan 11 14:25:32 2024] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

What version of Home Assistant Core has the issue?

core-2023.12.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

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

See above.

Additional information

hass reports Firmware: 6.10.3.0 build 297 for the device- so is the "E" model.

magnus579 commented 8 months ago

I am getting a similar error with the same overall behavior.

Note, this is a brand new SONOFF Zigbee 3.0 USB Dongle Plus-E (EFR32MG21) ordered on January 10, 2024.
Serial number is very similar to the OP: 2023112219XXXX

I flashed the firmware on the stick to 6.10.3.0 to confirm it wasn't a firmware issue following these instructions ([https://www.youtube.com/watch?v=BU9ha0Uaduc]()). The device is detected by Home Assistant but fails configuration while creating the network. Here is the error in the log:

Logger: bellows.ezsp.protocol Source: runner.py:188 First occurred: 12:48:08 PM (2 occurrences) Last logged: 12:48:32 PM

Unknown application frame 0x8375 received: b'6698' (b'5277ce75836698'). This is a bug! Unknown application frame 0x59FD received: b'3f' (b'524789fd593f'). This is a bug!

Fresh install of HAOS using the HAOS image 11.4 from ([https://github.com/home-assistant/operating-system/releases]()). Running on TrueNAS TrueNAS-SCALE-23.10.1.

I can manually add ZHA and select this device and eventually get it to install but the device doesn't function and generates these types of errors in the UI.

wez commented 8 months ago

I'm also seeing this, with the SONOFF Dongle Plus-E, Firmware: 6.10.3.0 build 297.

2024-01-15 11:47:50.044 ERROR (bellows.thread_0) [bellows.uart] CRC error in frame b'8a7e' (b'8a' != b'ffff')
2024-01-15 11:47:51.790 WARNING (MainThread) [bellows.ezsp.protocol] Unknown application frame 0x59FD received: b'3f' (b'62fc89fd593f').  This is a bug!
TheJulianJES commented 7 months ago

Do you have the "Silicon Labs Multiprotocol" addon installed? (or other addons that might access the stick?) Also, are you all using some kind of "VM passthrough"?

wez commented 7 months ago

no addons for me; this is hass running in docker with the usb device made available to it. only hass is configured to do anything with the device

markcs commented 7 months ago

Same issue here. Brand new device, no other firmware loaded on it. Home Assistant running in docker

2024-02-01 15:06:46.581 WARNING (MainThread) [bellows.ezsp.protocol] Unknown application frame 0x8375 received: b'6698' (b'0202cb75836698'). This is a bug! 2024-02-01 15:06:52.183 ERROR (MainThread) [aiohttp.server] Error handling request

The hex codes do change:

2024-02-01 15:07:27.448 WARNING (MainThread) [bellows.ezsp.protocol] Unknown application frame 0x59FD received: b'3f' (b'023a89fd593f'). This is a bug! 2024-02-01 15:07:33.051 ERROR (MainThread) [aiohttp.server] Error handling request

usb-devices gives this info:

T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=02(commc) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=1a86 ProdID=55d4 Rev=04.42 S: Manufacturer=ITEAD S: Product=SONOFF Zigbee 3.0 USB Dongle Plus V2 S: SerialNumber=20231218211506 C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=132mA I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=1ms I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=02(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.