Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZHA & Home Assistant Version 2022.3.1 no longer works #67780

Closed
andrewbpowers opened this issue Mar 7, 2022 · 57 comments
Closed

ZHA & Home Assistant Version 2022.3.1 no longer works #67780

andrewbpowers opened this issue Mar 7, 2022 · 57 comments
Assignees

Comments

@andrewbpowers
Copy link

The problem

Since version 2022.3.1 the following problem:

Couldn't start ZNP = Texas Instruments Z-Stack ZNP protocol: CC253x, CC26x2, CC13x2 coordinator
1:05:53 AM – (ERROR) Zigbee Home Automation - message first occurred at 12:58:26 AM and shows up 7 times
Config entry 'TI CC2531 USB CDC, s/n: __0X00124B001CD492BA - Texas Instruments' for zha integration not ready yet; Retrying in background
12:58:26 AM – (WARNING) config_entries.py

What version of Home Assistant Core has the issue?

2022.3.1

What was the last working version of Home Assistant Core?

2022.3.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?

No response

Additional information

No response

@Adminiuga
Copy link
Contributor

Enable debug logging for zha (check integration documentation) and submit logs.

Replug phisically the stick
Restart the host

What kind of radio?

@andrewbpowers
Copy link
Author

andrewbpowers commented Mar 7, 2022

The problem occurred only after a reset (off and on again) because HA crashed in version 2022.3.1. Since then I have reset several times via the UI and also turned the server completely off and on again. even unplugging the USB stick (CC 2531) did nothing. And again, up to version 2022.3.0/2022.3.1 it ran since montanen without problems.

22-03-07 10:14:44 WARNING (MainThread) [supervisor.hardware.monitor] Ignore device /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/tty/ttyACM0 / failes to initialize by udev

@probot-home-assistant
Copy link

Hey there @dmulcahey, 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!
(message by CodeOwnersMention)


zha documentation
zha source
(message by IssueLinks)

@andrewbpowers
Copy link
Author

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:152 
Integration: Zigbee Home Automation (documentation, issues) 
First occurred: 10:13:45 AM (13 occurrences) 
Last logged: 10:28:40 AM

Couldn't start ZNP = Texas Instruments Z-Stack ZNP protocol: CC253x, CC26x2, CC13x2 coordinator
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 530, in _skip_bootloader
    result = await responses.get()
  File "/usr/local/lib/python3.9/asyncio/queues.py", line 166, in get
    await getter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 152, in startup
    return await self._startup(
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 165, in _startup
    await znp.connect()
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 572, in connect
    self.capabilities = (await self._skip_bootloader()).Capabilities
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 530, in _skip_bootloader
    result = await responses.get()
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

@bschatzow
Copy link

My ZHA works (sonoff 3.0 usb). I have used all the betas as well as the point updates. Maybe something got hosed on the reset? Can you go back to the February version and see if it works? If it does make sure you turn on the debug logs and try the update again. Hopefully if it fails you will get enough information for someone to help.

@andrewbpowers
Copy link
Author

Version 2022.2.9 works. But other people have already reported that.

After my experience with HA, I can only say that starting backups and updates from the web UI is, unfortunately, absolutely unreliable. Often the tasks abort. This was also not a problem about a year ago.

@muffbernard
Copy link

I have the same problem. ZHA is working for a few hours and then he loose the communication and I must shut down my raspberry.

@Adminiuga
Copy link
Contributor

There were no zha changes in znp library since previous version.
WARNING (MainThread) [supervisor.hardware.monitor] Ignore device /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/tty/ttyACM0 / failes to initialize by udev means something may have changed in Hass OS and the serial port doesn't work anymore. And thirdly, CC2531 sticks are way outdated and no longer tested for compatibility. In other words YMMV support. Get newer sonoff as it has modern chipset

@andrewbpowers
Copy link
Author

I removed the "Zigbee Home Automation" and tried to reinstall. I can select the port where the Texas Inst. stick is connected or it is displayed in the selection. After some time it asks which protocol to use. If I select there the "Texas CC2531...", I get shortly after the error message that the port is not accessible. No matter if I backup from version 2022.2.9, 2022.3.0, 2022.3.1 or 2022.3.2 ZHA absolutely does not work anymore.

@jjantoine
Copy link

jjantoine commented Mar 7, 2022

Same issue when I updated Home Assistant to version 2022.3.2

Edit: i just waited a few hours doing anything and it seems to work fine now. My suggestion is to wait and see. Hope you have the same luck.

@andrewbpowers
Copy link
Author

I don't know what happened, but something was really screwed up. This is also proven by the large number of bug/problem reports. HA is unfortunately no longer usable for me at the moment.

@fabiobrolo
Copy link

I'm facing the same issue after the update.

@andrewbpowers

This comment was marked as off-topic.

@MiAutomations
Copy link

I'm also facing this issue reported

I try to reboot the hots, enable and disable the ZHA integration without success, also all the search of new device never find any device also the reconfigure devices always finish with errors

HA Version 2022.3.3

@MiAutomations
Copy link

Enable debug logging for zha (check integration documentation) and submit logs.

Replug phisically the stick Restart the host

What kind of radio?

After remove the stick and restar the hots The devices still unavailable and when I try to search for a new device the device appear but again finished with erros no device added successfully....

Log :

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_rsp: [<Status.SUCCESS: 0>]
[0x0000:zdo] No handler for ZDO request:ZDOCmd.Mgmt_Permit_Joining_rsp([<Status.SUCCESS: 0>])
0xF8A2: Attempting to checkin with device - missed checkins: 1
[0xf8a2] Extending timeout for 0x08 request
New device 0x5032 (54:ef:44:10:00:06:62:70) joined the network
[0x5032] Scheduling initialization
Tries remaining: 3
[0x5032] Requesting 'Node Descriptor'
Tries remaining: 2
[0x5032] Extending timeout for 0x09 request
Device 0xd4d5 (54:ef:44:10:00:06:62:70) joined the network
Device 54:ef:44:10:00:06:62:70 changed id (0xd4d5 => 0xd4d5)
[0xd4d5] Scheduling initialization
[0xd4d5] Canceling old initialize call
Tries remaining: 3
[0xd4d5] Requesting 'Node Descriptor'
Tries remaining: 2
[0xd4d5] Extending timeout for 0x0a request
Tries remaining: 1
[0xd4d5] Extending timeout for 0x0b request
0xF8A2: Attempting to checkin with device - missed checkins: 1
[0xf8a2] Extending timeout for 0x0c request
Tries remaining: 2
[0xd4d5] Requesting 'Node Descriptor'
Tries remaining: 2
[0xd4d5] Extending timeout for 0x0d request
0xF8A2: Attempting to checkin with device - missed checkins: 2
[0xf8a2] Extending timeout for 0x09 request
Tries remaining: 1
[0xd4d5] Extending timeout for 0x0e request

image

@SgtBatten
Copy link
Contributor

SgtBatten commented Mar 9, 2022

removed - determined my issue was unrelated

@janick
Copy link
Contributor

janick commented Mar 11, 2022

I have a similar issue after upgrading to 2022.3.3 with my ZB-GW04 SiliconLabs EFR32MG21A020F768IM32 USB 3.0 stick. It sees all my devices and displays their current states, but I cannot change them (i.e. an OFF outlet stays OFF, an ON outlet stays ON). MQTT and ESP32 devices work just fine.

@twangraus
Copy link

Same issue here. Using a Conbee2 zigbee stick. Unable to change device status or read a sensor.

@bckthomas
Copy link

Same with a zigate

`Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:152
First occurred: 12:35:59 (1 occurrences)
Last logged: 12:35:59

Error setting up entry USB-Serial Controller, s/n: n/a - Prolific Technology Inc. for zha
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 212, in command
result = await asyncio.wait_for(status_fut, timeout=timeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 102, in async_setup_entry
await zha_gateway.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/zigbee/application.py", line 39, in startup
await self._api.set_raw_mode()
File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 260, in set_raw_mode
await self.command(0x0002, data)
File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 226, in command
raise NoStatusError
zigpy_zigate.api.NoStatusError
`

@Adminiuga
Copy link
Contributor

Zigate error looks like the port is not working anymore. If this is HAssOS, then make sure the boot configuration to expose the port is still in place.

@bckthomas
Copy link

Yes it's HassOS.
How can I expose the port on boot ?
For information, it worked this morning like usual, 2 hours later, no more. No reboot, no configuration changes

@twangraus
Copy link

Same issue here. Using a Conbee2 zigbee stick. Unable to change device status or read a sensor.

I was able to solve it by plugging the conbee stick to an other port on the PI

@andrewbpowers
Copy link
Author

Even with a downgrade I could not get ZigBee to work with the CC2531 USB stick. Even after deleting the ZigBee integration and reinstalling, HA could not access the port or the CC2531 stick.

The only thing that worked was updating to version 2022.3.3 and using a new Sonoff Universal Zigbee 3.0 USB dongle. However, ALL ZigBee devices had to be re-paired, which changed the entity IDs. Absolute chaos!

In the process I found that the backups of HA are absolutely unusable because no add-ons are taken over and also the settings and certificates of Let's Encrypt are not copied.
Horror!

@bckthomas
Copy link

bckthomas commented Mar 11, 2022

I was able to solve it by plugging the conbee stick to an other port on the PI

Same for me, thanks !

@andrewbpowers
Copy link
Author

I had also tried unplugging the stick or pressing the rest button of the stick (CC2531) before. Both of these did not help either! :-(

@zhyu
Copy link

zhyu commented Mar 14, 2022

I had the same issue with HA docker 2022.3.4 and Conbee II, tried the following things:

  • plug Conbee II to a different USB port
  • restart HA on the WebUI
  • restart HA docker
  • downgrade to HA 2022.2
  • upgrade to HA 2022.4 dev

None of those approaches work.

I finally resolved the issue by use the switch on the wall to turn lights off/on, then ZHA started working again.

@MattWestb
Copy link
Contributor

The symptom the the network not working i was having the alpha testing tasmota and the system was resetting the network key security counter on restart. So very likely is the counter running away or are being retested in the coordinator and and the network is not in sync and think its one replay attack and dont like talking with the coordinator.
Re power one light / router that getting online and all is start working with broadcast and little later all is synced.

@muffbernard
Copy link

Screenshot_20220315-185847_Home Assistant

@muffbernard
Copy link

Screenshot_20220315-185847_Home Assistant
I don't understand this Problem. After the Update to 3.0. My zigbee is working for 5 -10 minutes after is broken. I try everything( new start, new plug from dongle, new installation....) nothing is working

@esackbauer
Copy link

Same error here, with Tasmota flashed Sonoff Zigbee bridge.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:96
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:20:45 (6 occurrences)
Last logged: 17:22:54

[140328399472144] Received invalid command: zha/configuration
[140328399472144] Received invalid command: zha/groups
[140328399472144] Received invalid command: zha/devices
[140328399472144] Received invalid command: zha/device

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:152
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 17:18:26 (79 occurrences)
Last logged: 19:04:26

Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.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/components/zha/core/gateway.py", line 152, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.9/site-packages/bellows/zigbee/application.py", line 132, in startup
self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
File "/usr/local/lib/python3.9/site-packages/bellows/ezsp/init.py", line 83, in initialize
await ezsp.reset()
File "/usr/local/lib/python3.9/site-packages/bellows/ezsp/init.py", line 98, in reset
await self._gw.reset()
File "/usr/local/lib/python3.9/site-packages/bellows/uart.py", line 223, in reset
return await asyncio.wait_for(self._reset_future, timeout=RESET_TIMEOUT)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

@MattWestb
Copy link
Contributor

I cant saying anything of the ZiGate then its looks being command from the coordinator that making strange things.

@esackbauer the last message is the important: TimeoutError.
Check that your Sonoff ZBB is working OK and you can reaching it with web interface and look in ts log if ZHA is connecting to it and if it accepting the connection.

@esackbauer
Copy link

esackbauer commented Mar 15, 2022

@MattWestb I can reach it with web interface.
In Tasmota Console I see repeated connections every ~90 seconds:
19:33:16.043 TCP: Got connection from 10.0.0.51
19:34:41.130 TCP: Got connection from 10.0.0.51
19:36:06.265 TCP: Got connection from 10.0.0.51
19:37:31.304 TCP: Got connection from 10.0.0.51

@MattWestb
Copy link
Contributor

For Zigate pleas look on zigpy/zigpy-zigate#118

@janick
Copy link
Contributor

janick commented Mar 15, 2022

Any pointers on how to roll back zigpy (and only zigpy) in HA?

@janick
Copy link
Contributor

janick commented Mar 17, 2022

Updated to HA 7.5 + Core 2022.3.5, removed USB ZigBee stick and deleted original integration.

Rebooted, added ZHA integration anew. Ask for the port (USB was one of the choices so I selected it). Seemed to have worked, but the old device registries are still there and the topology shows EVERYTHING off line, even the coordinator.

Log:

Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:428
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 6:27:19 PM (11 occurrences)
Last logged: 6:28:55 PM

[0x438C:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x438c:1:0x0006]: Message send failure'), DeliveryError('[0x438c:1:0x0006]: Message send failure'), DeliveryError('[0x438c:1:0x0006]: Message send failure'), DeliveryError('[0x438c:1:0x0006]: Message send failure')]
[0x811B:3:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x811b:3:0x0006]: Message send failure'), DeliveryError('[0x811b:3:0x0006]: Message send failure'), DeliveryError('[0x811b:3:0x0006]: Message send failure'), DeliveryError('[0x811b:3:0x0006]: Message send failure')]
[0x811B:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x811b:1:0x0006]: Message send failure'), DeliveryError('[0x811b:1:0x0006]: Message send failure'), DeliveryError('[0x811b:1:0x0006]: Message send failure'), DeliveryError('[0x811b:1:0x0006]: Message send failure')]
[0x811B:2:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x811b:2:0x0006]: Message send failure'), DeliveryError('[0x811b:2:0x0006]: Message send failure'), DeliveryError('[0x811b:2:0x0006]: Message send failure'), DeliveryError('[0x811b:2:0x0006]: Message send failure')]
[0xCAD2:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0xcad2:1:0x0006]: Message send failure'), DeliveryError('[0xcad2:1:0x0006]: Message send failure'), DeliveryError('[0xcad2:1:0x0006]: Message send failure'), DeliveryError('[0xcad2:1:0x0006]: Message send failure')]

@SgtBatten
Copy link
Contributor

SgtBatten commented Mar 17, 2022

removed - determined my issue was unrelated

@osxdoc
Copy link

osxdoc commented Mar 17, 2022

After downgrade the core to 2022.2.3, ZHA/Zigbee works fine.

ha core update --version 2022.2.3

EDIT: Fixed only for me - but I didn't know why it works for me since downgrade.

@janick
Copy link
Contributor

janick commented Mar 17, 2022

Reverting to core 2022.2.3 didn't fix mine.

Lesson learned: once this is working again, I'm buying a SECOND Pi and use one to shake down upgrades before I commit.

@MattWestb
Copy link
Contributor

I can recommend nanopi neo that is working great with armbian and is not so expensive for one test setup or using docker in windows and one network connected coordinator (both not supported as supervised but first is working and the last is not supporting comports so well).

@skrew
Copy link

skrew commented Mar 17, 2022

Add me on the list...

And reverting to 2022.2.x doesn't fix anything.

@SgtBatten
Copy link
Contributor

SgtBatten commented Mar 18, 2022

removed - determined my issue was unrelated

@janick
Copy link
Contributor

janick commented Mar 20, 2022

Using a spare SD card, I installed HASSIO 7.3 (from https://github.com/home-assistant/operating-system/releases/download/7.3/haos_rpi4-64-7.3.img.xz) from scratch. HA Core was automatically upgraded to 2022.3.5 but not the Supervisor. I downgraded Core to 2022.2.9, plugged in my ZigBee controller stick, added the ZHA integration -- and it was able to pair with one of my device.

Only problem now is that I don't have an old backup and this version of HA (understandably) refuses to upload a 2022.3.5 backup.

I guess it is going to be a race between having ZHA fixed in 7.5, and me figuring out a way to bounce all my YAML files from my 7.5 SSD to my 7.3 SDcard...

@kaystrobach
Copy link

Core: core-2022.3.5
Supervisor: supervisor-2022.03.5
Home Assistant OS 7.5

Worked until i rebooted today, maybe an update was installed (conbee works on my mac).

With a conbee II i get these messages (hot plug after boot)

Host

[  120.986560] audit: type=1334 audit(1647804073.058:175): prog-id=16 op=UNLOAD
[  120.986570] audit: type=1334 audit(1647804073.058:176): prog-id=15 op=UNLOAD
[  121.502683] audit: type=1334 audit(1647804073.574:177): prog-id=18 op=UNLOAD
[  121.502694] audit: type=1334 audit(1647804073.574:178): prog-id=17 op=UNLOAD
[  125.394466] usb 1-1.2: new full-speed USB device number 3 using xhci-hcd
[  125.498518] usb 1-1.2: Device not responding to setup address.
[  125.706509] usb 1-1.2: Device not responding to setup address.
[  125.914518] usb 1-1.2: device not accepting address 3, error -71

Supervisor logfile

2022-03-20 20:20:51 ERROR (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 66, in startup
    await self._api.connect()
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/api.py", line 253, in connect
    self._uart = await zigpy_deconz.uart.connect(self._config, self)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/uart.py", line 142, in connect
    _, protocol = await serial_asyncio.create_serial_connection(
  File "/usr/local/lib/python3.9/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'
2022-03-20 20:21:11 ERROR (MainThread) [zigpy.application] Couldn't start application
2022-03-20 20:21:11 ERROR (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 66, in startup
    await self._api.connect()
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/api.py", line 253, in connect
    self._uart = await zigpy_deconz.uart.connect(self._config, self)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/uart.py", line 142, in connect
    _, protocol = await serial_asyncio.create_serial_connection(
  File "/usr/local/lib/python3.9/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'
2022-03-20 20:21:41 ERROR (MainThread) [custom_components.eufy_security] eufy_security - Event received but device is missing, maybe not connected
2022-03-20 20:21:52 ERROR (MainThread) [zigpy.application] Couldn't start application
2022-03-20 20:21:52 ERROR (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 152, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 66, in startup
    await self._api.connect()
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/api.py", line 253, in connect
    self._uart = await zigpy_deconz.uart.connect(self._config, self)
  File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/uart.py", line 142, in connect
    _, protocol = await serial_asyncio.create_serial_connection(
  File "/usr/local/lib/python3.9/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2456004-if00'

@kaystrobach
Copy link

Very strange ... moving the conbee in the HA Blue USB ports made a connection possible ... seems to me, that the connection is wonky ...

@Adminiuga
Copy link
Contributor

[  125.498518] usb 1-1.2: Device not responding to setup address.
[  125.706509] usb 1-1.2: Device not responding to setup address.
[  125.914518] usb 1-1.2: device not accepting address 3, error -71

That is the system issue, not zha problem.

@MattWestb
Copy link
Contributor

Blue USB = USB 3 that can delivering more power to the device.
Your stick is not starting up OK so the host system cant detecting it OK.
You can trying using one eternal powered USB hub so you can getting enough power for you stick.

@kaystrobach
Copy link

I’m using the preconfigured „HA Blue Device (https://www.home-assistant.io/blue/)“ it’s like the usb ports allow to much movement of the conbee II so that touching it can break the connection, strange. So my problem is not related to the issue, agree.

@janick
Copy link
Contributor

janick commented Mar 22, 2022

It was starting to smell like an electrical problem: I was using the SDcard I used before switching to a SSD drive to figure out which exact HASSIO upgrade caused ZHA to break, and I took it up all the way to 7.5/2022.3.5 and it worked!

After backing everything up from my SSD drive to my SDcard (which can now upload and restore the backup without problems since they are both at the same versions), I re-installed 7.5/2022.3.5 on the SSD from scratch and before loading any integrations, I plugged my ZigBee controller, added ZHA and tried to pair a new device: it didn't work.

My setup:

  • RPI 4B
  • CanaKit 3A power supply
  • ZB-GW04 SiliconLab ZigBee controller stick (plugged in upper USB 3.1 port)
  • StarTech USB312SAT3CB USB-to-SATA controller (plugged in lower USB 3.1 port)
  • Kingston SATA SSD drive
  • Dell keyboard plugged in lower USB 2.0 port
  • HDMI monitor connected to left microHDMI port

I then tried plugging the ZigBee controller into a powered USB hub and leaving the SSD directly connected to the RPi. Still not working. So not a pure power problem, but definitely something related to the combination of the SSD and ZigBee controller being present at the same time.

Update: I'm now back to using my old SDcard running 7.5/2022.3.5 and everything is still working perfectly. I re-paired all of my ZigBee devices last night and this morning without any issues. Looks like I'll be buying a few high-quality SDcards as backups and relegate the SSD drive as a backup system for my laptop :-/

@rechena
Copy link

rechena commented Apr 4, 2022

Has anyone came up to any conclusion? Just installed 2022.2.9 and 2022.3.x and zha is absolutely broken :(

2022-04-04 18:39:58 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration zha: Exception importing homeassistant.components.zha.config_flow
2022-04-04 18:39:58 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 566, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 583, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/__init__.py", line 17, in <module>
    from . import api
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/api.py", line 21, in <module>
    from .core.const import (
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/core/__init__.py", line 4, in <module>
    from .device import ZHADevice
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/core/device.py", line 27, in <module>
    from . import channels, typing as zha_typing
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/core/channels/__init__.py", line 13, in <module>
    from . import (  # noqa: F401
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/core/channels/base.py", line 18, in <module>
    from ..const import (
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/components/zha/core/const.py", line 7, in <module>
    import bellows.zigbee.application
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/bellows/zigbee/application.py", line 9, in <module>
    import zigpy.application
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/zigpy/application.py", line 8, in <module>
    import zigpy.appdb
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/zigpy/appdb.py", line 60, in <module>
    sqlite3 = _import_compatible_sqlite3(min_version=MIN_SQLITE_VERSION)
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/zigpy/appdb.py", line 53, in _import_compatible_sqlite3
    raise RuntimeError(
RuntimeError: zigpy requires SQLite 3.24.0 or newer. If your distribution does not provide a more recent release, install pysqlite3 with `pip install pysqlite3-binary`

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

Traceback (most recent call last):
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/config_entries.py", line 733, in async_create_flow
    integration.get_platform("config_flow")
  File "/home/jrechena/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 575, in get_platform
    raise ImportError(
ImportError: Exception importing homeassistant.components.zha.config_flow

@Adminiuga
Copy link
Contributor

Yeah, your issue is absolutely unrelated, but the error gives you some hints: RuntimeError: zigpy requires SQLite 3.24.0 or newer. If your distribution does not provide a more recent release, install pysqlite3 with pip install pysqlite3-binary

Use HassOS.

@rechena
Copy link

rechena commented Apr 6, 2022

Yeah, your issue is absolutely unrelated, but the error gives you some hints: RuntimeError: zigpy requires SQLite 3.24.0 or newer. If your distribution does not provide a more recent release, install pysqlite3 with pip install pysqlite3-binary

Use HassOS.

You are absolutely right, after I've updated SQLite the problem went away. Appologies

@andrewbpowers

This comment was marked as off-topic.

@dmulcahey
Copy link
Contributor

There are several unrelated issues and several corrected issues listed in this report. For anyone still experiencing issues please open a new issue (you can link to this one if you want). Please do not add replies to the new issues if your log messages / errors are not the same.

@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests