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 · 0 comments
Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant