Closed hanshorstink closed 1 year ago
As documented in https://github.com/SynoCommunity/spksrc/wiki/FAQ-HomeAssistant IKEA Tradfri does not work in HA 2022.10.5.
Thanks for the quick response! That really sucks. Any idea if and when it might be resolved?
Currently I am trying to build Homeassistnat Core 2023.1.7.
with this version, there is an unresolvable conflict:
The conflict is caused by:
aiohomekit 2.4.4 depends on aiocoap>=0.4.5
pytradfri[async] 9.0.0 depends on aiocoap==0.4.3; extra == "async"
Right, I hope that one does support Tradfri. Goodluck! Any hints on how I can roll back to the previous version?
@hanshorstink you can try to manually install (downgrade) aiocoap==0.4.3
this fixed ikea tradfri for me (probably I have uninstaled some python modules before)
./pip install aiocoap==0.4.3
Tested on DSM 6.2.4 but should work on DSM 7.x too
EDIT: on DSM 7.x you have to adjust the ownership after installing python modules as root user:
sudo chown -R sc-homeassistant:sc-homeassistant /var/packages/homeassistant/target/env
This seems to make my installation unstable. I'm reinstalling HA from scratch now, without Tradfri, to get evrything working flawlesly (I had issues with ZHA for instance which seem not to reoccur). Then backup HA (?), try the downgrade of aiocoap again (I don't use Homekit anyway) and see if the Tradfri integration will start.
This seems to make my installation unstable. I'm reinstalling HA from scratch now, without Tradfri, to get evrything working flawlesly (I had issues with ZHA for instance which seem not to reoccur). Then backup HA (?), try the downgrade of aiocoap again (I don't use Homekit anyway) and see if the Tradfri integration will start.
This is due to restricted permissions in DSM 7.x For DSM 7 (after manual python package installation) you have to change the user:group on the venv folder like this:
chown -R sc-homeassistant:sc-homeassistant /var/packages/homeassistant/target/env
Success!!! I've downgraded aiocoap and adjusted ownership. And the Ikea integration installed flawlessly. Thanks for your help!
I'll check out the 2023.1.x version later.
Is this a new Bug?
Package Name
Home Assistant Core
Package Version
2022.10.5-19
Device Model
Synology DS115
Device Architecture
x86_64
Firmware Version
7.1.1-42962 Update 2
What happened?
Several integrations failed to load and reported errors. The one I really need to have a functioning system is the IKEA Tradfri intergration. ERRORS: Error occurred loading configuration flow for integration tradfri: cannot import name 'TimeoutError' from 'aiocoap.error' (/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/aiocoap/error.py) 7:15:10 PM – (ERROR) config_entries.py Error handling request 4:21:39 PM – (ERROR) components/tradfri/init.py Setup failed for tradfri: Unable to import component: cannot import name 'TimeoutError' from 'aiocoap.error' (/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/aiocoap/error.py) 3:38:30 PM – (ERROR) setup.py Full logs 2023-01-24 15:31:33.206 INFO (SyncWorker_0) [homeassistant.loader] Loaded tradfri from homeassistant.components.tradfri 2023-01-24 15:31:34.608 INFO (MainThread) [homeassistant.bootstrap] Domains to be set up: {'owntracks', 'energy', 'sun', 'tts', 'analytics', 'group', 'trace', 'dsmr', 'ssdp', 'frontend', 'cloud', 'history', 'config', 'hardware', 'samsungtv', 'tradfri', 'system_health', 'zone', 'input_select', 'climate', 'media_source', 'device_automation', 'onboarding', 'auth', 'system_log', 'timer', 'zha', 'websocket_api', 'recorder', 'input_button', 'input_datetime', 'input_text', 'logbook', 'bluetooth', 'webhook', 'api', 'input_boolean', 'input_number', 'light', 'repairs', 'http', 'tag', 'search', 'zeroconf', 'spotify', 'person', 'schedule', 'script', 'sensor', 'network', 'blueprint', 'homeassistant_alerts', 'counter', 'file_upload', 'usb', 'diagnostics', 'esphome', 'dhcp', 'automation', 'lovelace', 'mobile_app', 'speedtestdotnet', 'image', 'binary_sensor', 'application_credentials', 'map', 'default_config', 'my', 'scene', 'met'} 2023-01-24 15:31:59.166 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'tts', 'analytics', 'group', 'trace', 'history', 'config', 'system_health', 'zone', 'media_source', 'climate', 'timer', 'zha', 'input_text', 'logbook', 'input_boolean', 'input_number', 'light', 'repairs', 'search', 'person', 'sensor', 'homeassistant_alerts', 'counter', 'file_upload', 'automation', 'lovelace', 'binary_sensor', 'application_credentials', 'default_config', 'tag', 'scene', 'owntracks', 'energy', 'sun', 'dsmr', 'hardware', 'samsungtv', 'tradfri', 'input_select', 'device_automation', 'onboarding', 'auth', 'input_datetime', 'input_button', 'spotify', 'schedule', 'script', 'blueprint', 'diagnostics', 'esphome', 'mobile_app', 'speedtestdotnet', 'image', 'map', 'my', 'met'} 2023-01-24 15:38:30.877 ERROR (MainThread) [homeassistant.setup] Setup failed for tradfri: Unable to import component: cannot import name 'TimeoutError' from 'aiocoap.error' (/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/aiocoap/error.py) File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/tradfri/init.py", line 8, in
from pytradfri.api.aiocoap_api import APIFactory
File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/pytradfri/api/aiocoap_api.py", line 11, in
2023-01-24 19:15:10.006 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration tradfri: cannot import name 'TimeoutError' from 'aiocoap.error' (/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/aiocoap/error.py)
Reproduction steps
Install Log
Service Log
Other Logs