core: ZHA Failing to Load - Sonoff Zigbee 3.0 USB Dongle Plus

The problem

I am not sure what has happened to trigger this, but all of a sudden I am getting an error on my ZHA integration.

What version of Home Assistant Core has the issue?

Home Assistant 2022.9.7 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ZHA

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 112, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 138, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 119, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 70, in initialize
    await self.load_network_info(load_devices=False)
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 164, in load_network_info
    await self._znp.load_network_info(load_devices=load_devices)
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 125, in load_network_info
    ieee = await self.nvram.osal_read(OsalNvIds.EXTADDR, item_type=t.EUI64)
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/nvram.py", line 171, in osal_read
    raise KeyError(f"NV item does not exist: {nv_id!r}")
KeyError: 'NV item does not exist: <OsalNvIds.EXTADDR: 1>'

Additional information

So sorry if I have got any of this information wrong - I am a bit of a noob and don’t have a huge amount of knowledge. I have been using HA on a Pi3 for about a year with the Sonoff Zigbee dongle. Had no issues until today, doesn’t seem to coincide with any updates. I am at a total loss.

https://github.com/home-assistant/core/issues/77382

This ^ was the closest error I could find to the one I have, but there is no solution in the thread.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Is this just to re-flash?

wget is also giving me an error. However, I have found this tutorial on re-flashing:

https://www.youtube.com/watch?v=KBAGWBWBATg

Shall I just do it that way?

Ok - 10pm here, so I think this might be a job for when I am not falling asleep - I will try to work through it.

Thanks so much for your help - you have been so helpful!

I’m pretty IT literate, but never done coding so I think I will be able to work through those instructions.

Ok if I come back to you when I have been through it over the weekend?