ZHA gives "ERROR" when setting up integration

Hi, I am hoping someone can help me out here. I am completely stuck.
My situation is as follows:

  • Bought a Sonoff Zigbee bridge pro
  • Flashed it with Tasmota (12.4.0.2)
  • Followed this guide by Mat Zolnierczyk → Resized FS → Flashed Coordinator firmware → rebooted device

So far so good, I am able to pair my Zigbee sensors in Tasmota and can read the temperature of my Sonoff Zigbee temperature sensor.

From here on I am following this page to enable my Sonoff Zigbee bridge pro for the ZHA integration.

  • Select Sonoff ZBPro TCP in the Tasmota Auto Configuration section
  • Confirmed that TCP port 8888 is listening on my Zigbee Bridge
  • In the ZHA integration, I selected ZNP as radio type
  • Configured socket://192.168.0.9:8888 as my serial path and selected software for Data Flow control

The Network Formation popup looks promising (see below), but regardless of selecting “Keep radio network settings” or “Erase network settings and create a new network”…

image
…both will end in an “ERROR”
image

Yesterday I did my first attempt, and it worked right away and my sensors were visible in HA. Both my Zigbee sensors stopped reporting after 30 minutes already. All my attempts to fix or reproduce the issue today failed. I am stuck in getting the ZHA integration to work.

The error in the homeassistant log for this is not helpful:

2023-03-15 22:53:46.696 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry socket://192.168.0.9:8888 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 122, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 171, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 146, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 122, in initialize
    await self.start_network()
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 196, in start_network
    await self._znp.migrate_nvram()
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 595, in migrate_nvram
    await self.reset()
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 606, in reset
    await self.request_callback_rsp(
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 1043, in request_callback_rsp
    return await callback_rsp
asyncio.exceptions.CancelledError

Any suggestion or pointer in the right direction is welcome.

I am running:
Home Assistant 2023.3.4
Supervisor 2023.03.1
Operating System 9.5
Frontend 20230309.0 - latest

I feel stupid. A full HA restart fixed the problem :innocent:

1 Like

uhuh … actually it did … but only after plugging it back into the original port and starting reconfig up to the point where it gives the error , and then reboot .

Get Home Assistant , it will save you time and make your life more organized !

:rofl: