ZHA stopped working after update

Thank you Andrew, for your ideas. Meanwhile I have bought a raspberry pi 4 with SSD instead of using virtualbox with an old MacBook Air. I have used the USB 2 Port. And it is working now!

Hi again
Good that you got it working.
I myself use RPi4, SSD as my daily driver/production setup.
It’s a good setup for home usage :dove:

True. It works very well so far.

I have the same “Failed to connect” issue with a Sonoff dongle that has been working fine for 2+ years until one of the updates this fall.

Has anyone found a solution?

Just updated the base OS (9.4 to 9.5) and have the same issue:

FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'

While I can see /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 under ttyUSB0 in the hardware tab. :frowning:

I don’t have much time for debugging now, but I fixed it by downgrading from the terminal:

ha host update --version 9.4
1 Like

Had a quick zigbee blimp and a few devices got stuck after that , looking at the logs see this event right at the time that happened, any idea what was that ?

Logger: zigpy.appdb
Source: runner.py:179
First occurred: 03:52:06 (2 occurrences)
Last logged: 03:52:06

Discarding _save_device_last_seen event
Discarding _save_attribute event

And a few seconds after

Logger: homeassistant.components.automation.zha_laundry_wall_switch_bottom_outside_off
Source: components/zha/core/cluster_handlers/general.py:407
Integration: Automation (documentation, issues)
First occurred: 03:52:29 (2 occurrences)
Last logged: 03:52:29

ZHA - (Laundry) wall switch - bottom - Outside off: Error executing script. Unexpected error for device at pos 1:
While executing automation automation.zha_laundry_wall_switch_bottom_outside_off
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/zigpy/device.py”, line 310, in request
return await req.result
^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 468, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 719, in _async_device_step
await device_action.async_call_action_from_config(
File “/usr/src/homeassistant/homeassistant/components/device_automation/action.py”, line 71, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File “/usr/src/homeassistant/homeassistant/components/switch/device_action.py”, line 35, in async_call_action_from_config
await toggle_entity.async_call_action_from_config(
File “/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py”, line 123, in async_call_action_from_config
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1965, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2005, in _execute_service
return await cast(
^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 848, in entity_service_call
response_data = task.result() # pop exception if have
^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 1192, in async_request_call
return await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 892, in _handle_entity_call
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/zha/switch.py”, line 96, in async_turn_off
result = await self._on_off_cluster_handler.turn_off()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py”, line 407, in turn_off
result = await self.off()
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/util.py”, line 132, in retry
return await func()
^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py”, line 375, in request
return await self._endpoint.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py”, line 253, in request
return await self.device.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/device.py”, line 309, in request
async with asyncio_timeout(timeout):
File “/usr/local/lib/python3.11/asyncio/timeouts.py”, line 111, in aexit
raise TimeoutError from exc_val
TimeoutError