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

Adding an IKEA STYRBAR (and some other) device fails with a KeyError #249

Open
lopezio opened this issue Oct 20, 2024 · 1 comment
Open
Labels
bug Confirmed bug

Comments

@lopezio
Copy link

lopezio commented Oct 20, 2024

Hi,

I have an IKEA STYRBAR that used to work well (paired last year with HA 2023.12.x), which I wanted to re-configure. Now running HA 2024.10.3, it fails all the time in the "Interview Complete - Configuring" Phase. I had another small remote (RODRIK), which initially had the same errors, but after a restart of HA/ZHA was finally paired. The STYRBAR Remote does not finish pairing, instead it produces a log entry that I am adding here. Can't figure whether it's a problem with the device or possibly a bug in ZHA.

Apparently, it's IEEE is not in _device_init_tasks it seems. Maybe someone has an idea. Adding two relevant log entries from 2 different (failed) attempts to pair it.

Update: So far, it looks like it is a problem with the device. But it used to work until recently, so maybe having a look at why that IEEE is missing from the "init tasks" may lead to other bug findings or even to a solution for that device.

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:147
First occurred: 2:14:41 AM (1 occurrences)
Last logged: 2:14:41 AM

Error doing job: Exception in callback Gateway.device_initialized..(<Task finishe...not respond')>) at /usr/local/lib/python3.12/site-packages/zha/application/gateway.py:454 (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/zha/application/gateway.py", line 454, in
init_task.add_done_callback(lambda _: self._device_init_tasks.pop(device.ieee))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 28:76:81:ff:fe:23:4c:c5

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:147
First occurred: 3:06:27 PM (1 occurrences)
Last logged: 3:06:27 PM

Error doing job: Exception in callback Gateway.device_initialized..(<Task finishe...not respond')>) at /usr/local/lib/python3.12/site-packages/zha/application/gateway.py:454 (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/zha/application/gateway.py", line 454, in
init_task.add_done_callback(lambda _: self._device_init_tasks.pop(device.ieee))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 28:76:81:ff:fe:23:4c:c5

@lopezio
Copy link
Author

lopezio commented Oct 22, 2024

Update: It looks like I have this problem with all STYRBARs that I re-pair or pair anew. Same error in the logs.
Any hints? The difference between the two installations (and the time before, where the existing STYRBARs were added) is the Coordinator stick. I switched from a SkyConnect (Nabu Casa) Firmware: 7.3.1.0 build 176, using Migrate Network function, to a Slae.sh TI CC2652, Firmware: Z-Stack 20240710. So it looks like it might be related either to the new coordinator, or to the migration. Any hints on how to further debug this and/or forward it to the appropriate forum/repo? Other devices seem to pair and work fine. Best Regards, Lorenzo

@TheJulianJES TheJulianJES added the bug Confirmed bug label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants