Error setting up entry Sonoff Zigbee 3.0 USB Dongle Plus for zha after Update to HA Core 2025.01

I did an update to HA Core 2025.01 this morning. Suddenly my Sonoff Zigbee Dongle stopped working.
I checked the logs and found this error:

Logger: homeassistant.config_entries
Quelle: config_entries.py:640
Erstmals aufgetreten: 20:05:06 (1 Vorkommnisse)
Zuletzt protokolliert: 20:05:06

Error setting up entry Sonoff Zigbee 3.0 USB Dongle Plus for zha
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 132, in async_setup_entry
    async with radio_mgr.connect_zigpy_app() as app:
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/radio_manager.py", line 182, in connect_zigpy_app
    app = await self.radio_type.controller.new(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        app_config, auto_form=False, start_radio=False
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 239, in new
    await app._load_db()
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 111, in _load_db
    await self._dblistener.load()
  File "/usr/local/lib/python3.13/site-packages/zigpy/appdb.py", line 684, in load
    device = zigpy.quirks.get_device(device)
  File "/usr/local/lib/python3.13/site-packages/zigpy/quirks/__init__.py", line 43, in get_device
    return _DEVICE_REGISTRY.get_device(device)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zigpy/quirks/registry.py", line 130, in get_device
    return quirk_entry.create_device(device)
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zigpy/quirks/v2/__init__.py", line 430, in create_device
    return CustomDeviceV2(device.application, device.ieee, device.nwk, device, self)
  File "/usr/local/lib/python3.13/site-packages/zigpy/quirks/v2/__init__.py", line 91, in __init__
    add_meta(self)
    ~~~~~~~~^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zigpy/quirks/v2/__init__.py", line 164, in __call__
    endpoint: Endpoint = device.endpoints[self.endpoint_id]
                         ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 2

After some research I flashed a new Firmware (with this how-to: Sonoff Zigbee 3.0 CC2652P Dongle Plus ZBDongle-P Zigbee compatibility). That did not help.

Then I did a rollback from my backup to 2024.12.5. ZHA started gracefully, all Zigbee Devices worked fine.
I tried to update so HA Core 2025.01 again. The Error occures again.
I restored to 2024.12.5 again. Everything is fine.

Does anyone has a similiar problem?
Any Ideas?

2 Likes

Hi. I have the same problen with my dongle Plus-E, but no idea how to resolve it. In fact, if a reload the dongle with HA Core 2024.12.5., I will get the same error. Restanting HA will help, but not wihh Core 2025.1.0.

I run HAOS on rpi 5 8gb.

1 Like

I have the same issue. also had to rollback to 2024.x

Ok, I found I had one (unnecessary) quirk in config/zha_quirks. Removed that and now everything runs smoothly.

For me it works now with HA Core 2025.1.2.