home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

ZHA failed to set up Conbee II 2023.9.3 #101004

Closed yesterdayshero closed 5 months ago

yesterdayshero commented 11 months ago

The problem

Since updating to 2023.9.3, my ZHA is failing to start up with my Conbee II.

Have tried reloading the integration and re-configuring the device but still not working.

Log...

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:209
First occurred: 10:51:23 PM (8 occurrences)
Last logged: 11:17:23 PM

Error setting up entry ConBee II for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 198, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 155, in initialize
    await self.permit(0)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 1140, in permit
    await zigpy.zdo.broadcast(
  File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 519, in broadcast
    return await app.broadcast(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 916, in broadcast
    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_INVALID_REQUEST: 194>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 180, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 222, in async_initialize
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 209, in async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
    await self.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
    await self._dblistener.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
    await self._set_isolation_level(None)
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
    await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
  File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
    raise ValueError("Connection closed")
ValueError: Connection closed

What version of Home Assistant Core has the issue?

core-2023.9.3

What was the last working version of Home Assistant Core?

core-2023.9.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:209
First occurred: 10:51:23 PM (8 occurrences)
Last logged: 11:17:23 PM

Error setting up entry ConBee II for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 198, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 155, in initialize
    await self.permit(0)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 1140, in permit
    await zigpy.zdo.broadcast(
  File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 519, in broadcast
    return await app.broadcast(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 916, in broadcast
    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_INVALID_REQUEST: 194>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 180, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 222, in async_initialize
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 209, in async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
    await self.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
    await self._dblistener.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
    await self._set_isolation_level(None)
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
    await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
  File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
    raise ValueError("Connection closed")
ValueError: Connection closed

Additional information

No response

home-assistant[bot] commented 11 months ago

Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

RoelStierum commented 11 months ago

Facing the same issue!

puddly commented 11 months ago

There were no changes related to the Conbee in 2023.9.3. Is your Conbee on a USB extension cable and away from interference sources, like SSDs, USB 3.0 ports, and 2.4GHz WiFi?

RoelStierum commented 11 months ago

yep, its in an extension cable, it was running fine before the update

On Sep 27 2023, at 10:53 pm, puddly @.***> wrote:

There were no changes related to the Conbee in 2023.9.3. Is your Conbee on a USB extension cable and away from interference sources, like SSDs, USB 3.0 ports, and 2.4GHz WiFi? — Reply to this email directly, view it on GitHub @./0?redirect=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Fcore%2Fissues%2F101004%23issuecomment-1738062358&recipient=cmVwbHkrQU9PTFFNSU9TU0lNSk4zRlpCT1RQUVdERUhFSzNFVkJOSEhIRUxQWlhZQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe @./1?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOOLQMNRGBRZRTUSEJSOHL3X4SG23ANCNFSM6AAAAAA5JMH6ZA&recipient=cmVwbHkrQU9PTFFNSU9TU0lNSk4zRlpCT1RQUVdERUhFSzNFVkJOSEhIRUxQWlhZQHJlcGx5LmdpdGh1Yi5jb20%3D). You are receiving this because you commented.

RoelStierum commented 11 months ago

i am using it in a vm on unraid, but that shouldn't matter. Logging says the following:

2023-09-27T20:47:46.750835Z qemu-system-x86_64: -chardev tty,id=charserial0,path=/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBeeII*ID-if00: warning: The alias 'tty' is deprecated, use 'serial' instead

i tried entering the serial path in the zigbee home automation integration but with no luck

yesterdayshero commented 11 months ago

Mine is on an extension cable as well. I've since reverted to 2023.9.2 and it's working again. Not sure what it could be, but moving to 2023.9.3 is what seems to cause the issue.

puddly commented 11 months ago

Interesting. Could you grab a startup debug log (https://www.home-assistant.io/integrations/zha/#debug-logging) from .2 and .3? I'll try to take a look to see if there is something different.

yesterdayshero commented 11 months ago

Here are my logs for 2023.9.2, let me know if I've not downloaded the correct thing.

It'll just take me a bit longer to get the 2023.9.3 logs as I want to update when I have a bit of time to restore etc.

config_entry-zha-f4866f257a2109bdf0e3724c5d7dcbdf.json.txt home-assistant_2023-09-27T23-18-13.213Z.log

aquatix commented 11 months ago

I have the same issue, on 2023.9.3 and also on 2023.9.2 after restoring a backup. Don't have debug logs though.

It's sudden, I think it started after a restart of HA because of an issue I had with the zwave.js container (about 23 hours ago); my HA was already on 2023.9.3 for a while then.

gasemans commented 11 months ago

i am having the same issues

I dont think it has something to do with a restart of HA. it just happend this evening. restarting the HA but same story. Unplugging the conbee II stick and reboot HA. and it is back online for some time. but after 1 hour it crashed again.

Changed the conbee stick to an other USB port. and it was online again after restarting HA for about 2 hours and it crashed again.

I have just restored the 2023.9.2 and it was online again.

i noticed on my google search most ppl are using the conbee II stick and are having issues with 2023.9.x

I was planning to migrate to a sonoff stick. If the issue returns i might just do that first.

aquatix commented 11 months ago

I have a slightly different stacktrace when trying to switch a light:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/core/cluster_handlers/__init__.py:75
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 09:06:23 (2 occurrences)
Last logged: 09:06:27

[281472032346304] Failed to send request: Failed to deliver packet: <TXStatus.NWK_INVALID_REQUEST: 194>
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_INVALID_REQUEST: 194>

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 591, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/zha/light.py", line 471, in async_turn_off
    result = await self._on_off_cluster_handler.off()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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_INVALID_REQUEST: 194>
yesterdayshero commented 11 months ago

Interesting. Could you grab a startup debug log (https://www.home-assistant.io/integrations/zha/#debug-logging) from .2 and .3? I'll try to take a look to see if there is something different.

Here are my logs for 2023.9.3. The odd thing is, everything seems to be working for the time being. I've restarted and still going ok. Will track how it goes over the next couple of days.

config_entry-zha-f4866f257a2109bdf0e3724c5d7dcbdf.json.txt home-assistant_2023-10-01T03-49-18.617Z.log

GregoryWest501 commented 11 months ago

I am having a odd problem too. I had to do a restore, everything works fine, except ZHA. I go to install ZHA, select the ComBee II from the list of three serial ports. When the configuration screen comes up I select "Erase everything can create fresh configuration" Click next and after a few seconds HA replies back with 'Error' no other information.

Not sure if this is related to what is going on.

puddly commented 11 months ago

If you did a restore because you migrated hardware, make sure your Conbee is away from interference sources listed above. Its firmware will crash when there is too much noise and there isn't any way to prevent this with ZHA.

aquatix commented 11 months ago

I had to unplug, wait a bit and replug the Conbee II every few hours to make the network respond again with the crashes occurring. Then I unplugged the dongle, upgraded to 2023.9.3 again (I reverted to .2 before for debugging), didn't get crashes, plugged the Conbee II back in and the setup has been happy since. It's running stable for days now, so I'm unsure about what the issue is/was.

tommyguuuun commented 11 months ago

I have the same issue after updating to 2023.10 core update. The stick completely stopped working, even restoring a backup or a vm backup doesn‘t help.

vmdaube commented 11 months ago

Are there any updates? Same problem on my site. Can’t switch any lights in the moment. Losing the waf in the moment.

jonastaedcke commented 11 months ago

I had the same problem. It worked for months (or a year) and then suddenly some lights stopped working. My solution was to disconnect the Zigbee adapter, reconnect it and restart the Home Assistant.

All the lights worked again.

gasemans commented 11 months ago

After restoren to 2023.9.2 no more issues. Now upgraded to 2023.10 and have not seen the issue return. Still using the combee II stick.

tommyguuuun commented 11 months ago

After restoren to 2023.9.2 no more issues. Now upgraded to 2023.10 and have not seen the issue return. Still using the combee II stick.

I did the exact same thing, but the issue still persists…

RoelStierum commented 11 months ago

What worked for me:

(running on unraid)

rafo commented 11 months ago

I have the same Problem running Home Assistant 2023.10.1 Supervisor 2023.10.0 Operating System 10.5 Frontend 20231005.0 - latest on a rpi4.

Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 09:03:43 (1 occurrences)
Last logged: 09:03:43

Error setting up entry ConBee II for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 313, in _command
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 198, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 117, in initialize
    await self.load_network_info(load_devices=False)
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/zigbee/application.py", line 309, in load_network_info
    (network_info.channel,) = await self._api[NetworkParameter.current_channel]
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 430, in read_parameter
    r = await self._command(Command.read_parameter, 1 + len(data), param, data)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 312, in _command
    async with asyncio_timeout(COMMAND_TIMEOUT):
  File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 172, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 214, in async_initialize
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 201, in async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
    await self.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
    await self._dblistener.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
    await self._set_isolation_level(None)
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
    await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
  File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
    raise ValueError("Connection closed")
ValueError: Connection closed

This is an interesting bit of the main Home Assistant Core log:

2023-10-11 09:03:31.548 WARNING (MainThread) [zigpy_deconz.uart] Lost connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')

And after this:

2023-10-11 09:03:31.548 WARNING (MainThread) [zigpy_deconz.uart] Lost connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/serial_asyncio_fast/__init__.py", line 132, in _read_ready
data = self._serial.read(self._max_read_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/serial/serialposix.py", line 595, in read
raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2023-10-11 09:03:31.567 WARNING (MainThread) [zigpy_deconz.zigbee.application] Lost connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
2023-10-11 09:03:31.592 WARNING (MainThread) [zigpy_deconz.uart] Lost connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/serial_asyncio_fast/__init__.py", line 132, in _read_ready
data = self._serial.read(self._max_read_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/serial/serialposix.py", line 595, in read
raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2023-10-11 09:03:31.595 WARNING (MainThread) [zigpy_deconz.zigbee.application] Lost connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
2023-10-11 09:03:31.995 WARNING (MainThread) [zigpy_deconz.zigbee.application] Unexpected transmit confirm for request id 97, Status: TXStatus.SUCCESS
2023-10-11 09:03:32.584 WARNING (MainThread) [zigpy_deconz.zigbee.application] Unexpected transmit confirm for request id 97, Status: TXStatus.SUCCESS
2023-10-11 09:03:33.341 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.read_parameter' command with seq id '0x09'
2023-10-11 09:03:33.342 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 313, in _command
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 198, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 117, in initialize
await self.load_network_info(load_devices=False)
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/zigbee/application.py", line 305, in load_network_info
(network_info.extended_pan_id,) = await self._api[
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 430, in read_parameter
r = await self._command(Command.read_parameter, 1 + len(data), param, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 312, in _command
async with asyncio_timeout(COMMAND_TIMEOUT):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError
2023-10-11 09:03:33.425 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.version' command with seq id '0x03'
2023-10-11 09:03:33.428 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 485, in _aps_data_indication
r = await self._command(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 308, in _command
self._uart.send(data)
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'send'
2023-10-11 09:03:33.434 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 583, in _aps_data_confirm
r = await self._command(Command.aps_data_confirm, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 308, in _command
self._uart.send(data)
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'send'
2023-10-11 09:03:33.439 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 583, in _aps_data_confirm
r = await self._command(Command.aps_data_confirm, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 308, in _command
self._uart.send(data)
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'send'
2023-10-11 09:03:33.444 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 485, in _aps_data_indication
r = await self._command(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 308, in _command
self._uart.send(data)
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'send'
2023-10-11 09:03:33.508 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator (attempt 1 of 3)
mtosin commented 10 months ago

same issue here,after update is stopped working

Logger:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:226
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:36:31 (5 occurrences)
Last logged: 19:44:24

[2588023144] Failed to send request: Failed to deliver packet: <TXStatus.MAC_NO_ACK: 233>
[2610434792] Failed to send request: Failed to deliver packet: <TXStatus.MAC_NO_ACK: 233>
[2587197608] Failed to send request: Failed to deliver packet: <TXStatus.MAC_NO_ACK: 233>
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.MAC_NO_ACK: 233>

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2012, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2049, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 876, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/switch.py", line 93, in async_turn_off
    await self._on_off_cluster_handler.turn_off()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 395, in turn_off
    result = await self.off()
             ^^^^^^^^^^^^^^^^
  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_NO_ACK: 233>
tjerkw commented 9 months ago

Same issue.

I would recommend bring the latest zha version down to prevent further damages to people's installation.

Logger: homeassistant.components.zha.core.cluster_handlers
Source: components/zha/core/cluster_handlers/__init__.py:537
Integration: Zigbee Home Automation ([documentation](https://www.home-assistant.io/integrations/zha), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+zha%22))
First occurred: 07:47:44 (9 occurrences)
Last logged: 07:47:49

[0xB9AD:3:0x0008]: async_initialize: all attempts have failed: [DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>')]
[0xB9AD:3:0x0006]: async_initialize: all attempts have failed: [DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>')]
[0xEE97:11:0x0300]: async_initialize: all attempts have failed: [DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>')]
[0x3CF2:1:0x0b04]: async_initialize: all attempts have failed: [DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>')]
[0xF473:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>'), DeliveryError('Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>')]
WeterPeter commented 8 months ago

it is VERY important you hav an USB extention cable between the Conbee stick. I had meny issues until I installed one.

issue-triage-workflows[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.