Aqara devices unavailable after 2023.10

After updating to 2023.10 all my Aqara devices (remote switches, door/window sensor) became unavailable.

Logger: homeassistant
Source: components/zha/core/cluster_handlers/__init__.py:75
First occurred: 21:50:39 (1 occurrences)
Last logged: 21:50:39

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 64, in wrap_zigpy_exceptions
    yield
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 84, in wrapper
    return await RETRYABLE_REQUEST_DECORATOR(func)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 377, 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 293, in request
    await self._application.request(
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 828, in request
    await self.send_packet(
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/zigbee/application.py", line 464, in send_packet
    raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 578, in async_configure
    await self.identify_ch.trigger_effect(
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 83, in wrapper
    with wrap_zigpy_exceptions():
  File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 75, in wrap_zigpy_exceptions
    raise HomeAssistantError(message) from exc
homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>
Logger: zigpy.zcl
Source: runner.py:186
First occurred: 21:50:42 (1 occurrences)
Last logged: 21:50:42

[0x7123:1:0x0500] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 293, in request await self._application.request( File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 828, in request await self.send_packet( File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/zigbee/application.py", line 464, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>

Looks like a zigbee issue, check that out.

Everything else works on ZHA. what do you mean to check that out exaclty?

I linked it again via zha and then it worked again

can you tell me the procedure you did please? (or do you mean, you just simply re-paired it with ZHA)

Yes, that’s what I mean.
Put equipment back in pairing mode and zha get it installed again. You don’t have to adjust anything in automation then.

Sorry for my English. Is not my own language.

unfortunately it doesn’t work. ZHA just wouldn’t find the device anymore … (i tried removing it entirely from HA, and also resetted the device)

After removing it, did you do a reboot or restart of HA. Then did you re-add the integration and reboot or restart HA. Then did you re-pair the Aquara devices?

re-add the integration? you mean remove ZHA completely and re-add it? wouldn’t that make all my ZHA devices to be removed from HA?

Never mind that suggestion. Are these the only Aqara devices? Or are there others working fine? Is the firmware current and up to date on the Aqara devices?

other devices work fine. not sure how to update firmware on aqara devices. I don’t have an aqara gateway

Dongle in use or hub?

i use Raspbee 2 and I connect zigbee devices via this ZHA integration

Which Aqara devices are the issue currently?

Also did you read the release notes (202310.0) it mentions changes to deCONZ which is used by Raspbee 2 and ZHA items which could of broke your setup?

Collapse supported features list in Deconz (@joostlek - #99233)
Fix zha test RuntimeWarning (@cdce8p - #99519)
Migrate internal ZHA data to a dataclasses (@puddly - #100127)
Use hass.loop.create_future() in zha (@jbouwh - #100056)
ZHA multiprotocol detected - fix typo (@c0ffeeca7 - #100683)
ZHA multiprotocol detected message: add info (@c0ffeeca7 - #100686)
Bump zha-quirks to 0.0.104
Bump ZHA dependencies (@puddly - #100979)
Fix ZHA exception when writing cie_addr during configuration (@TheJulianJES - #101087)

So it’s up to you to either rollback or redo the ZHA and your devices.

Hm, I checked Releases · home-assistant/core · GitHub but I don’t see anything deconz related

I have Aqara devices that drop off occasionally. it’s usually because they couldn’t see the hub for a while. Sometimes an upgrade of the OS or HA will do this but it’s just that the sensor couldn’t see the hub.

My process for recovering these is as follows.

  1. Don’t delete anything or remove and re-add the integration.

  2. Set ZHA to add a new device.

  3. Perform a long press on the Aqara sensor button to reset it. Keep holding until the light flashes. release the button,

  4. Wait 5 seconds and press the button once again. You should see the device pair again using the old device name. Ypu may need to set the correct location again.

  5. if the device doesn’t pair the first time then try again. It can take a few goes.

This always works for me so hopefully it will work for you.