ZHA broken after .115.1 update

I’m running HA in docker with a CC2531 USB stick forwarded into the container. Zigbee was working fine on the latest .114 release but all devices are showing as unavailable after the .115 upgrade

In my logs I’ve got

Logger: zigpy.application
Source: /usr/local/lib/python3.8/site-packages/zigpy/application.py:67
First occurred: 9:35:07 (1 occurrences)
Last logged: 9:35:07

Couldn’t start application

followed by

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:147
First occurred: 9:35:07 (1 occurrences)
Last logged: 9:35:07

Error setting up entry TI CC2531 USB CDC, s/n: __0X00124B0014D9301A - Texas Instruments for zha
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/serial/serialposix.py”, line 265, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
OSError: [Errno 16] Resource busy: ‘/dev/ttyACM0’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/zigpy/application.py”, line 65, in new
await app.startup(auto_form)
File “/usr/local/lib/python3.8/site-packages/zigpy_cc/zigbee/application.py”, line 92, in startup
self._api = await API.new(self, self._config[CONF_DEVICE])
File “/usr/local/lib/python3.8/site-packages/zigpy_cc/api.py”, line 94, in new
await api.connect()
File “/usr/local/lib/python3.8/site-packages/zigpy_cc/api.py”, line 103, in connect
self._uart = await uart.connect(self._config, self)
File “/usr/local/lib/python3.8/site-packages/zigpy_cc/uart.py”, line 196, in connect
_, protocol = await serial_asyncio.create_serial_connection(
File “/usr/local/lib/python3.8/asyncio/coroutines.py”, line 124, in coro
res = func(*args, **kw)
File “/usr/local/lib/python3.8/site-packages/serial_asyncio/init.py”, line 410, in create_serial_connection
ser = serial.serial_for_url(*args, **kwargs)
File “/usr/local/lib/python3.8/site-packages/serial/init.py”, line 88, in serial_for_url
instance.open()
File “/usr/local/lib/python3.8/site-packages/serial/serialposix.py”, line 268, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 16] could not open port /dev/ttyACM0: [Errno 16] Resource busy: ‘/dev/ttyACM0’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 228, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 100, in async_setup_entry
await zha_gateway.async_initialize()
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 147, in async_initialize
self.application_controller = await app_controller_cls.new(
File “/usr/local/lib/python3.8/site-packages/zigpy/application.py”, line 68, in new
await app.shutdown()
File “/usr/local/lib/python3.8/site-packages/zigpy_cc/zigbee/application.py”, line 71, in shutdown
self._api.close()
AttributeError: ‘NoneType’ object has no attribute ‘close’

I was in the same situation. Funny because it seems home assistant could see the entities (as their last seen time was updating), but it couldn’t control them. I ended up reverting back to a 114 snapshot and had to remove and re-add some devices to get them working again.

Did you ever get 115 to work? I was thinking of investing in a conbee and trying that with zigbee2mqtt to see if that works.

It worked after applying the mitigation in another thread but after the recent point release update (I think) it’s now broken again. I’m now tempted to look at ZigBee2MQTT based option buy a sonoff ZigBee bridge because I’m starting to lose trust in HA ZHA stability (which’ll guarantee that everything gets fixed and is stable once the sonoff arrives).

I had this issue too (using the iTead CC2531 adapter). I deleted my Zigbee devices and repaired and they have been fine since. Not too bad for me as I only have 3 Zigbee door sensors connected to HA

I ended up buying the Sonoff zigbee bridge and set that up in ZHA using https://www.digiblur.com/2020/07/how-to-use-sonoff-zigbee-bridge-with.html

I figure since ZHA is connecting over TCP/IP it shouldn’t break if any zigbee changes are made to ZHA. Works well so far, we’ll see if it lasts.