Closed EricInMi closed 1 year ago
Hey there @martinhjelmare, @functionpointer, mind taking a look at this issue as it has been labeled with an integration (mysensors
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
mysensors documentation mysensors source (message by IssueLinks)
It seems like there is a problem with MySensors and ZHA having some type of conflict. Error from ZHA / HUSBZB-1 when trying to start up. Logger: homeassistant.components.zha.core.gateway Source: components/zha/core/gateway.py:172 Integration: Zigbee Home Automation (documentation, issues) First occurred: December 15, 2022 at 7:56:01 AM (3 occurrences) Last logged: December 15, 2022 at 7:56:19 AM
Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 1 of 3) Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 2 of 3) Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 3 of 3) Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return 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 172, in async_initialize self.application_controller = await app_controller_cls.new( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 151, in new await app.startup(auto_form=auto_form) File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 131, in startup await self.connect() File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect self._ezsp = await bellows.ezsp.EZSP.initialize(self.config) File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 105, in initialize await ezsp.version() File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 128, in version ver, stack_type, stack_version = await self._command( File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError
Logger: homeassistant.config_entries Source: components/zha/core/gateway.py:172 First occurred: December 15, 2022 at 7:56:19 AM (1 occurrences) Last logged: December 15, 2022 at 7:56:19 AM
Error setting up entry HubZ Smart Home Controller, s/n: 4120064D - Silicon Labs for zha Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return 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/config_entries.py", line 372, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 111, in async_setup_entry await zha_gateway.async_initialize() File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize raise exc File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize self.application_controller = await app_controller_cls.new( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 151, in new await app.startup(auto_form=auto_form) File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 131, in startup await self.connect() File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect self._ezsp = await bellows.ezsp.EZSP.initialize(self.config) File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 104, in initialize await ezsp._startup_reset() File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 95, in _startup_reset await self.reset() File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 124, in reset await self._gw.reset() File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 251, in reset return await asyncio.wait_for(self._reset_future, timeout=RESET_TIMEOUT) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError
I can also cause the ZHA application to fail by enabling MySensors after it was disabled and ZHA was working. Not a valid message: not enough values to unpack (expected 5, got 0) 11:19:34 AM – (WARNING) runner.py - message first occurred at 11:18:49 AM and shows up 3 times Error decoding message from gateway, bad data received: � 11:19:34 AM – (WARNING) runner.py - message first occurred at 11:18:49 AM and shows up 3 times ControllerApplication reset unsuccessful: TimeoutError() 11:19:28 AM – (WARNING) /usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py - message first occurred at 11:18:52 AM and shows up 4 times Attempted to use a closed event loop 11:19:28 AM – (WARNING) runner.py - message first occurred at 11:19:04 AM and shows up 2 times Lost serial connection: SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)') 11:19:23 AM – (ERROR) /usr/local/lib/python3.10/site-packages/bellows/uart.py - message first occurred at 11:18:59 AM and shows up 2 times Watchdog heartbeat timeout: TimeoutError() 11:18:47 AM – (WARNING) runner.py - message first occurred at 11:17:47 AM and shows up 5 times
I think you have a USB port conflict. The mysensors integration isn't responsible for the USB ports. It just tries to connect to the configured port.
Thank you for the reply. I agree. I was using /dev/ttyUSB2 as I had thought the HUSBZB-1 stick was on USB0 and USB1. IN Strangely the HUSBZB-1 stick appears to have moved. I determined the connected USB ports in Home Assistant using Settings->System->Hardware-> three dots in the upper right hand corner, select "All Hardware" and found the correct port.
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.
The problem
HUSBZB-1 won't start when MySensors application is enabled. If MySensors is disabled HUSBZB-1 starts normally. Both are connected to the USB serial ports in a Rasberry Pi 3 B+
What version of Home Assistant Core has the issue?
2022.12.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
MySensors
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mysensors
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