core icon indicating copy to clipboard operation
core copied to clipboard

Sonoff Zigbee 3.0 USB dongle not loading via ZHA when upgrading from 2023.1.6 to 2023.2.2

Open julianjwong opened this issue 2 years ago • 2 comments

The problem

Tried updating from 2023.1.6 to 2023.2.0 and ZHA and my Sonoff Zigbee 3.0 USB dongle stopped working. Reverted back to a backup VM image and then later tried updating to 2023.2.2 and still the same issue.

What version of Home Assistant Core has the issue?

2023.2.2

What was the last working version of Home Assistant Core?

2023.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Diagnostics information

ZHA debug from 2023.2.2 home-assistant_zha_2023-02-06T11-40-35.230Z.log.txt See comment below for the 2023.1.6 ZHA debug log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

julianjwong avatar Feb 06 '23 11:02 julianjwong

Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

home-assistant[bot] avatar Feb 06 '23 11:02 home-assistant[bot]

Adding ZHA debug log from 2023 home-assistant_zha_2023-02-06T12-09-46.263Z.log.txt .1.6

julianjwong avatar Feb 06 '23 12:02 julianjwong

Found a workaround migrate your radio and select to keep the same settings that seemed to fix it for me

SixShot66 avatar Feb 08 '23 22:02 SixShot66

@puddly any chance you can take a look at this one? May or may not be related to the other reports

julianjwong avatar Feb 10 '23 00:02 julianjwong

@SixShot66

Do you need to have a second radio (spare) to follow your workaround please. am having this same error since updating to 2023.2.2. ZHA will not start no matter what. please can you explain steps for your workaround .

Thanks

naijaping avatar Feb 12 '23 07:02 naijaping

@naijaping Hey, no 2nd radio needed I just did the following click Configure on ZHA -> Migrate Radio -> Re-Configure -> (for me selected the 1st device path) -> Submit -> Keep Radio Network Settings and that should solve it... temporarily every time I reboot of HA I have to do this again until I assume a fix comes out

SixShot66 avatar Feb 12 '23 08:02 SixShot66

Any news on the fix for this problem please, this occur any time I restart HA

naijaping avatar Feb 18 '23 17:02 naijaping

Can anyone comment if the 2023.3.1 release fixes things?

julianjwong avatar Mar 02 '23 11:03 julianjwong

Can anyone comment if the 2023.3.1 release fixes things?

Nope, Its even worse, I have been battling with ZigBee devices not responding since update. at one point ZHA page not found

naijaping avatar Mar 02 '23 20:03 naijaping

I have the same issue after upgrading to 2023.3.1. The 'Migrate Radio' fix suggested above did not work for me. The logs show the following errors:

Logger: homeassistant.config_entries Source: zha_quirks/pir.py:23 First occurred: 9:40:51 PM (4 occurrences) Last logged: 9:56:13 PM

Error setting up entry SONOFF Zigbee 3.0 USB Dongle Plus V2 for zha Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 100, in async_setup_entry setup_quirks(config) File "/usr/local/lib/python3.10/site-packages/zhaquirks/init.py", line 409, in setup importer.find_module(modname).load_module(modname) File "", line 548, in _check_name_wrapper File "", line 1063, in load_module File "", line 888, in load_module File "", line 290, in _load_module_shim File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/config/zha_quirks/pir.py", line 23, in from zhaquirks.tuya.mcu import ( ImportError: cannot import name 'TuyaDPType' from 'zhaquirks.tuya.mcu' (/usr/local/lib/python3.10/site-packages/zhaquirks/tuya/mcu/init.py)

ollie4452 avatar Mar 03 '23 02:03 ollie4452

Apologies for the noise. The issue in my case was caused by a custom quirk for a Tuya light sensor. I removed the quirk and ZHA properly started.

ollie4452 avatar Mar 03 '23 03:03 ollie4452

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.