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

Tradfri: Home Assistant: TypeError("'NoneType' object does not support item assignment") #333

Open
Mariusthvdb opened this issue Dec 15, 2023 · 5 comments

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Dec 15, 2023

system:
Home Assistant
Core 2023.12.2
Supervisor 2023.12.0
Operating System 11.2
Frontend 20231208.2
Please help me filing this, running HomeAssistant and the Tradfri integration.

log shows

Logger: coap
Source: runner.py:188
First occurred: 10:11:08 (4010 occurrences)
Last logged: 10:18:53

An exception that is not an aiocoap Error was raised from a transport; please report this as a bug in aiocoap: CredentialsMissingError('No suitable credentials for coaps://192.168.1.99/15001/65680')
An exception that is not an aiocoap Error was raised from a transport; please report this as a bug in aiocoap: TypeError("'NoneType' object does not support item assignment")

and the Tradfri integration has become horribly unreliable because connection is lost all the time. there are a great deal of partnering wanring/errors, this mention aiocoap too:

Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:402
First occurred: 10:13:35 (2987 occurrences)
Last logged: 10:18:53

Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiocoap/transports/tinydtls.py", line 170, in wrapper
    return getattr(self, __method)(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiocoap/transports/tinydtls.py", line 280, in _read
    self.coaptransport.ctx.dispatch_message(message)
  File "/usr/local/lib/python3.11/site-packages/aiocoap/messagemanager.py", line 109, in dispatch_message
    success = self._process_response(message)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiocoap/messagemanager.py", line 335, in _process_response
    return self.token_manager.process_response(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiocoap/tokenmanager.py", line 167, in process_response
    if key not in self.outgoing_requests:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

there are many more mentioning the tinytdls, and of course issues have been raised in Home Assistant Tradfri integration

home-assistant/core#105004
home-assistant/core#85254 (comment)
and more.

Hope you can have some pointers what to do, where to look. Instruct me to debug this please.
thanks

@Mariusthvdb
Copy link
Author

getting worse and worse

Scherm­afbeelding 2024-01-31 om 10 41 50

@chrysn
Copy link
Owner

chrysn commented Jan 31, 2024 via email

@Mariusthvdb
Copy link
Author

Mariusthvdb commented Jan 31, 2024

not really no, not that I can imagine.

maybe only some beter logging in the scripts/automations section, so making things more obvious?

as a matter of fact, Ive even taken out some of the entities to go to the new Dirigera, or ZHA.

Ive tried to describe things as accurately as possible, and add new info if and when applicable. It's all we can do as users, the core dev team is the only team that can further investigate having all required knowledge.

@Airblader
Copy link

FWIW, I am getting the same error when trying to connect my Onvis HS2 to Home Assistant.

@Mariusthvdb
Copy link
Author

forget this integration, move you Ikea devices to the new Dirigera hub, and integrate them via Homekit devices.

Ive done that some while ago and never looked back.

The existing Ikea TRADFRI integration is flawed beyond fixing, especially since no code owner is available, and the integration is ignored.

Homekit devices is supported very well, so the choice is obvious .

Tbh, I should close this issue, as Ive openend it and found the solution ;-)

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

3 participants