core
core copied to clipboard
ZHA Error in components/zha/core/channels/base.py:486 during reconfiguration
The problem
I am using Sonoff Zigbee Plus 3.0 dongle with ZHA. I have a bunch of innr gu10 lights that sometimes flicker on / off on their own. I wanted to test if reconfiguring them would help. However, reconfiguring them fails with the following error:
Relevant log entry:
Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation ([documentation](https://www.home-assistant.io/integrations/zha), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+zha%22))
First occurred: 13:23:44 (2 occurrences)
Last logged: 13:23:44
[0x1037:1:0x0006]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0x1037:1:0x0008]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
What version of Home Assistant Core has the issue?
core-2023.2.5
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
ZHA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha
Diagnostics information
config_entry-zha-630a77b96aff6589b4f16ff6715bff16.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation ([documentation](https://www.home-assistant.io/integrations/zha), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+zha%22))
First occurred: 13:23:44 (2 occurrences)
Last logged: 13:23:44
[0x1037:1:0x0006]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0x1037:1:0x0008]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
Additional information
No response
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)
I have the same, also with Sonof Zigbee Plus 3.0 "P", but with different lights, both from Hue and Innr. Actually all " reconfigure" actions fail, some with this error some without. Some wil thenl have no green checkmarks with their bindings, although they function well.
Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 12:40:55 (9 occurrences)
Last logged: 12:42:32
[0xB1E4:11:0x0008]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0xB1E4:11:0x0300]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0xD43D:11:0x0006]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0xD43D:11:0x0008]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
[0xD43D:11:0x0300]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
The same with HA 2023.5.3
2023-05-15 06:50:28.792 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xC5CE:1:0x0006]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 342, in async_configure await self.configure_reporting() File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 266, in configure_reporting self._configure_reporting_status(reports, res[0]) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 308, in _configure_reporting_status if res[0].status == Status.SUCCESS and len(res) == 1: TypeError: 'uint8_t' object is not subscriptable
I observed the same with HA 2023.06.2:
2023-06-16 14:34:21.185 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE716:11:0x0008]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
2023-06-16 14:34:23.794 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE716:11:0x0300]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
2023-06-16 14:34:23.812 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE716:11:0x0006]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
2023-06-16 14:39:07.761 ERROR (MainThread) [frontend.js.latest.202306080] :0:0 ResizeObserver loop completed with undelivered notifications.
2023-06-16 14:40:08.372 WARNING (MainThread) [homeassistant.components.automation.schlafzimmer_ausschalten] Schlafzimmer ausschalten: Already running
2023-06-16 14:40:31.451 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:31.565 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:31.611 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:31.622 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:31.687 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:31.693 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:36.507 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:36.526 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E71:11:0x0006]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 342, in async_configure
await self.configure_reporting()
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 266, in configure_reporting
self._configure_reporting_status(reports, res[0])
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 308, in _configure_reporting_status
if res[0].status == Status.SUCCESS and len(res) == 1:
~~~^^^
TypeError: 'uint8_t' object is not subscriptable
2023-06-16 14:40:36.535 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E71:11:0x0008]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 342, in async_configure
await self.configure_reporting()
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 266, in configure_reporting
self._configure_reporting_status(reports, res[0])
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 308, in _configure_reporting_status
if res[0].status == Status.SUCCESS and len(res) == 1:
~~~^^^
TypeError: 'uint8_t' object is not subscriptable
2023-06-16 14:40:36.540 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E71:11:0x0300]: 'async_configure' stage failed: 'uint8_t' object is not subscriptable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 342, in async_configure
await self.configure_reporting()
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 266, in configure_reporting
self._configure_reporting_status(reports, res[0])
File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 308, in _configure_reporting_status
if res[0].status == Status.SUCCESS and len(res) == 1:
~~~^^^
TypeError: 'uint8_t' object is not subscriptable
2023-06-16 14:40:36.550 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:36.658 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:36.671 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:36.674 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E71:11:0x1000]: Couldn't get list of groups:
2023-06-16 14:40:36.680 ERROR (MainThread) [frontend.js.latest.202306080] http://homeassistant.local:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8086 TypeError: this._clusterConfigurationStatuses is undefined
2023-06-16 14:40:36.683 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:36.687 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
2023-06-16 14:40:36.691 ERROR (MainThread) [frontend.js.latest.202306080] http://192.168.178.56:8123/frontend_latest/62575-KluNNWS1xBg.js:4:8121 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
The same exception occurred multiple times more.
I am not sure, but I believe this is the reason why reconnect of known devices fails. For me the workaround is to completely remove the device from HA, reset it and do a new connect. Luckily HA recognises the device as the same entity as before so that scenes, automations etc. still work.
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.