SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.24k forks source link

Failing IKEA tradfri integration in Home Assistant Core 2022.10.5-19 #5578

Closed hanshorstink closed 1 year ago

hanshorstink commented 1 year ago

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

1.Upgrade the Home Assistant Package
2.
3.
...

Install Log

/var/log/packages/homeassistant.log
2023/01/24 09:19:53   Building wheel for pycountry (pyproject.toml): finished with status 'done'
2023/01/24 09:19:55   Created wheel for pycountry: filename=pycountry-22.3.5-py2.py3-none-any.whl size=10681832 sha256=d3917ef8d074834c8e6695cc243c24126b23ee805627d002db64fcd6263bea66
2023/01/24 09:19:55   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/03/57/cc/290c5252ec97a6d78d36479a3c5e5ecc76318afcb241ad9dbe
2023/01/24 09:19:55   Building wheel for urwid (setup.py): started
2023/01/24 09:20:11   Building wheel for urwid (setup.py): finished with status 'done'
2023/01/24 09:20:11   Created wheel for urwid: filename=urwid-2.1.2-py3-none-any.whl size=235033 sha256=1aa9a6e473b745c3244ffd5ab89e870eadeb6b35e4d629314d3dc5d58c095c83
2023/01/24 09:20:11   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/05/3d/85/cde786c07f333509d868e5024d5ed8c70519fa1b8e8c66ec6c
2023/01/24 09:20:11   Building wheel for aiofile (setup.py): started
2023/01/24 09:20:18   Building wheel for aiofile (setup.py): finished with status 'done'
2023/01/24 09:20:18   Created wheel for aiofile: filename=aiofile-3.8.1-py3-none-any.whl size=19447 sha256=3bb02c65cc344aaefa806e063528ba8bab628274cf395c5aa00b2fcfb4edd602
2023/01/24 09:20:18   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/b7/70/d2/393655aab6fb2b964a2b88921b1927d858c91af183316a4a52
2023/01/24 09:20:18   Building wheel for docopt (setup.py): started
2023/01/24 09:20:25   Building wheel for docopt (setup.py): finished with status 'done'
2023/01/24 09:20:25   Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13705 sha256=b934df47f5ccc7fc2330a3da234474db66daa099b605f6a9090c229adbcab234
2023/01/24 09:20:25   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/fc/ab/d4/5da2067ac95b36618c629a5f93f809425700506f72c9732fac
2023/01/24 09:20:25   Building wheel for vincenty (setup.py): started
2023/01/24 09:20:31   Building wheel for vincenty (setup.py): finished with status 'done'
2023/01/24 09:20:31   Created wheel for vincenty: filename=vincenty-0.1.4-py3-none-any.whl size=3068 sha256=cf25efba75219a74717712ce25f5c64e3931083be2e1197da16c34cc991e1fb3
2023/01/24 09:20:31   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/3b/53/d4/c562486723d1637dd35e7e25a2357831069e73d04ef692e638
2023/01/24 09:20:31   Building wheel for vol (setup.py): started
2023/01/24 09:20:38   Building wheel for vol (setup.py): finished with status 'done'
2023/01/24 09:20:38   Created wheel for vol: filename=vol-0.1.1-py3-none-any.whl size=4126 sha256=030f9f2a44946493c07556cabfc37a1e4d73742fc5853dcf6504476a15421142
2023/01/24 09:20:38   Stored in directory: /volume1/@appstore/homeassistant/pip-cache/wheels/77/c4/7d/256486f8e8a3f4ed96f34cdcee1cfd49818891fa423fe18e81
2023/01/24 09:20:38 Successfully built AEMET-OpenData agent-py aiocoap ambiclimate CO2Signal commentjson crcmod dicttoxml fritzconnection future graphql-subscription-manager hangups jsonrpc-async jsonrpc-base jsonrpc-websocket lark metar ms-cv paho-mqtt pubnub pydaikin PyMeeus pysmb ratelimit ReParser stringcase zigpy-zigate pure-pcapy3 lark-parser pycountry urwid aiofile docopt vincenty vol
2023/01/24 09:21:01 Installing collected packages: vincenty, urwid, stringcase, ssdp, ReParser, readlike, ratelimit, pyownet, PyMeeus, ptyprocess, ply, paho-mqtt, mypy-extensions, ms-cv, metar, lark-parser, lark, korean-lunar-calendar, jsonrpc-base, intelhex, haversine, geojson, geographiclib, docopt, dicttoxml, deepmerge, crcmod, crccheck, CO2Signal, cached-property, bitstring, appdirs, aiocache, aenum, zope.event, zipp, xmltodict, vol, tzdata, typing-inspect, tenacity, srptools, soupsieve, semver, pyusb, pytradfri, python-engineio, pysnmp-pyasn1, pysmb, pyserial-asyncio, pyparsing, pydantic, pycountry, pyasn1-modules, pure-pcapy3, plumbum, platformdirs, pkce, pi1wire, oauthlib, natsort, more-itertools, marshmallow, lomond, loguru, jsonschema, jsonpickle, jeepney, isodate, inflection, humanfriendly, httpsig, hijri-converter, ha-ffmpeg, greeclimate, graphql-subscription-manager, googleapis-common-protos, getmac, geopy, future, exceptiongroup, dicttoxml2, dacite, cssselect, convertdate, ConfigArgParse, commentjson, colorzero, colorlog, click, cachetools, bidict, backoff, asyncstdlib, asyncio-throttle, asyncio-mqtt, asyncio-dgram, arcam-fmj, alarmdecoder, aiosqlite, aiofiles, aiofile, aiocoap, WSDiscovery, typer, synology-srm, requests-oauthlib, requests-file, pywemo, pytz-deprecation-shim, python-socketio, pysnmp-pysmi, pyquery, pyialarm, pyfritzhome, py-synologydsm-api, py-canary, packaging, marshmallow-enum, marshmallow-dataclass, jaraco.classes, importlib-metadata, gpiozero, google-auth, fritzconnection, croniter, coloredlogs, click-log, cattrs, casttube, buienradar, blinkpy, beautifulsoup4, arrow, agent-py, AEMET-OpenData, adext, abodepy, zigpy, zeep, tzlocal, SecretStorage, python-izone, pysnmplib, pyoctoprintapi, pyMetno, pyipp, pydaikin, pyclimacell, pyatag, pyalmond, pyairvisual, pubnub, MechanicalSoup, keyrings.alt, jsonrpc-websocket, jsonrpc-async, google-api-core, fjaraskupan, dataclasses-json, chacha20poly1305-reuseable, bsblan, broadlink, boschshcpy, bond-api, blebox-uniapi, Authlib, asyncssh, ambiclimate, ambee, airly, aiohwenergy, aiohue, aiogithubapi, aiodns, aioazuredevops, aioambient, aio-geojson-client, advantage-air, adguardhome, adax, accuweather, zigpy-znp, zigpy-zigate, zigpy-xbee, zigpy-deconz, zigpy-cc, zha-quirks, yalexs, radios, python-songpal, pysiaalarm, pyatv, keyring, hangups, denonavr, dateparser, brother, bimmer-connected, bellows, axis, authcaptureproxy, aioasuswrt, teslajsonpy, pyicloud, aio-georss-client
2023/01/24 09:21:36   Attempting uninstall: platformdirs
2023/01/24 09:21:36     Found existing installation: platformdirs 2.6.0
2023/01/24 09:21:36     Not uninstalling platformdirs at /volume1/@appstore/python310/lib/python3.10/site-packages, outside environment /volume1/@appstore/homeassistant/env
2023/01/24 09:21:36     Can't uninstall 'platformdirs'. No files were found to uninstall.
2023/01/24 09:22:56 Successfully installed AEMET-OpenData-0.2.1 Authlib-0.15.4 CO2Signal-0.4.2 ConfigArgParse-1.5.3 MechanicalSoup-0.12.0 PyMeeus-0.5.11 ReParser-1.4.3 SecretStorage-3.3.3 WSDiscovery-2.0.0 abodepy-1.2.0 accuweather-0.4.0 adax-0.2.0 adext-0.4.2 adguardhome-0.5.1 advantage-air-0.4.1 aenum-3.1.0 agent-py-0.0.23 aio-geojson-client-0.15 aio-georss-client-0.8 aioambient-2021.11.0 aioasuswrt-1.4.0 aioazuredevops-1.3.5 aiocache-0.11.1 aiocoap-0.4.1 aiodns-3.0.0 aiofile-3.8.1 aiofiles-0.7.0 aiogithubapi-22.10.1 aiohue-4.5.0 aiohwenergy-0.4.0 aiosqlite-0.17.0 airly-1.1.0 alarmdecoder-1.13.11 ambee-0.3.0 ambiclimate-0.2.1 appdirs-1.4.4 arcam-fmj-0.12.0 arrow-1.1.1 asyncio-dgram-2.1.0 asyncio-mqtt-0.10.0 asyncio-throttle-1.0.2 asyncssh-2.7.0 asyncstdlib-3.10.5 authcaptureproxy-1.0.2 axis-44 backoff-1.11.1 beautifulsoup4-4.11.1 bellows-0.34.2 bidict-0.21.2 bimmer-connected-0.10.4 bitstring-3.1.9 blebox-uniapi-2.0.2 blinkpy-0.19.2 bond-api-0.1.12 boschshcpy-0.2.35 broadlink-0.18.2 brother-2.0.0 bsblan-0.5.0 buienradar-1.0.5 cached-property-1.5.2 cachetools-4.2.4 casttube-0.2.1 cattrs-22.2.0 chacha20poly1305-reuseable-0.0.4 click-8.1.3 click-log-0.4.0 coloredlogs-15.0.1 colorlog-6.7.0 colorzero-2.0 commentjson-0.9.0 convertdate-2.3.2 crccheck-1.0 crcmod-1.7 croniter-1.0.6 cssselect-1.1.0 dacite-1.6.0 dataclasses-json-0.5.3 dateparser-1.0.0 deepmerge-1.1.0 denonavr-0.10.11 dicttoxml-1.7.4 dicttoxml2-2.1.0 docopt-0.6.2 exceptiongroup-1.1.0 fjaraskupan-2.0.0 fritzconnection-1.10.3 future-0.18.2 geographiclib-1.52 geojson-2.5.0 geopy-2.1.0 getmac-0.8.2 google-api-core-1.31.1 google-auth-1.34.0 googleapis-common-protos-1.58.0 gpiozero-1.6.2 graphql-subscription-manager-0.4.0 greeclimate-1.3.0 ha-ffmpeg-3.0.2 hangups-0.4.18 haversine-2.3.1 hijri-converter-2.1.3 httpsig-1.3.0 humanfriendly-10.0 importlib-metadata-6.0.0 inflection-0.5.1 intelhex-2.3.0 isodate-0.6.0 jaraco.classes-3.2.3 jeepney-0.8.0 jsonpickle-2.0.0 jsonrpc-async-2.1.0 jsonrpc-base-2.1.0 jsonrpc-websocket-3.1.0 jsonschema-4.17.3 keyring-23.0.1 keyrings.alt-4.2.0 korean-lunar-calendar-0.2.1 lark-0.11.3 lark-parser-0.7.8 loguru-0.5.3 lomond-0.3.3 marshmallow-3.13.0 marshmallow-dataclass-8.5.3 marshmallow-enum-1.5.1 metar-1.8.0 more-itertools-9.0.0 ms-cv-0.1.1 mypy-extensions-0.4.3 natsort-8.2.0 oauthlib-3.1.1 packaging-20.9 paho-mqtt-1.6.1 pi1wire-0.1.0 pkce-1.0.3 platformdirs-2.4.0 plumbum-1.7.0 ply-3.11 ptyprocess-0.7.0 pubnub-7.0.2 pure-pcapy3-1.0.1 py-canary-0.5.3 py-synologydsm-api-1.0.8 pyMetno-0.9.0 pyairvisual-2022.7.0 pyalmond-0.0.2 pyasn1-modules-0.2.8 pyatag-0.3.5.3 pyatv-0.10.3 pyclimacell-0.18.2 pycountry-22.3.5 pydaikin-2.7.2 pydantic-1.10.2 pyfritzhome-0.6.7 pyialarm-2.2.0 pyicloud-1.0.0 pyipp-0.11.0 pyoctoprintapi-0.1.8 pyownet-0.10.0.post1 pyparsing-3.0.9 pyquery-1.4.3 pyserial-asyncio-0.6 pysiaalarm-3.0.2 pysmb-1.2.7 pysnmp-pyasn1-1.1.2 pysnmp-pysmi-1.1.10 pysnmplib-5.0.15 python-engineio-4.2.1 python-izone-1.2.9 python-socketio-5.4.0 python-songpal-0.15.1 pytradfri-9.0.0 pytz-deprecation-shim-0.1.0.post0 pyusb-1.2.1 pywemo-0.9.1 radios-0.1.1 ratelimit-2.2.1 readlike-0.1.3 requests-file-1.5.1 requests-oauthlib-1.3.0 semver-2.13.0 soupsieve-2.3.2.post1 srptools-1.0.1 ssdp-1.1.0 stringcase-1.2.0 synology-srm-0.2.0 tenacity-8.0.1 teslajsonpy-0.18.3 typer-0.7.0 typing-inspect-0.7.1 tzdata-2022.7 tzlocal-4.2 urwid-2.1.2 vincenty-0.1.4 vol-0.1.1 xmltodict-0.13.0 yalexs-1.2.6 zeep-4.1.0 zha-quirks-0.0.83 zigpy-0.51.3 zigpy-cc-0.5.2 zigpy-deconz-0.19.0 zigpy-xbee-0.16.2 zigpy-zigate-0.10.2 zigpy-znp-0.9.1 zipp-3.11.0 zope.event-4.5.0
2023/01/24 09:23:03 End service_postinst
2023/01/24 09:23:03 upgrade homeassistant 2022.10.5-19 End postinst ret=[0]
2023/01/24 09:23:03 upgrade homeassistant 2022.10.5-19 Begin postupgrade
2023/01/24 09:23:04 Begin reload_inst_variables
2023/01/24 09:23:04 End reload_inst_variables
2023/01/24 09:23:04 Begin initialize_variables
2023/01/24 09:23:04 End initialize_variables
2023/01/24 09:23:04 ===> Step postupgrade. STATUS=UPGRADE USER=sc-homeassistant GROUP= SHARE_PATH=
2023/01/24 09:23:04 Begin syno_sync_var_folder
2023/01/24 09:23:04 End syno_sync_var_folder
2023/01/24 09:23:06 upgrade homeassistant 2022.10.5-19 Begin start-stop-status start
2023/01/24 09:23:07 upgrade homeassistant 2022.10.5-19 End start-stop-status start ret=[0]
2023/01/24 14:10:01 start homeassistant 2022.10.5-19 Begin start-stop-status stop
2023/01/24 14:10:01 start homeassistant 2022.10.5-19 End start-stop-status stop ret=[0]
2023/01/24 14:10:18 start homeassistant 2022.10.5-19 Begin start-stop-status start
2023/01/24 14:10:19 start homeassistant 2022.10.5-19 End start-stop-status start ret=[0]
2023/01/24 15:14:53 start homeassistant 2022.10.5-19 Begin start-stop-status stop
2023/01/24 15:14:53 start homeassistant 2022.10.5-19 End start-stop-status stop ret=[0]
2023/01/24 15:15:07 start homeassistant 2022.10.5-19 Begin start-stop-status start
2023/01/24 15:15:07 start homeassistant 2022.10.5-19 End start-stop-status start ret=[0]
2023/01/24 15:30:29 stop homeassistant 2022.10.5-19 Begin start-stop-status stop
2023/01/24 15:30:30 stop homeassistant 2022.10.5-19 End start-stop-status stop ret=[0]
2023/01/24 15:31:02 start homeassistant 2022.10.5-19 Begin start-stop-status start
2023/01/24 15:31:02 start homeassistant 2022.10.5-19 End start-stop-status start ret=[0]

Service Log

DOES NOT EXIST

Other Logs

/volume1/@appdata/homeassistant/homeassistant.log
=================================================
2023-01-24 15:32:09.951 INFO (SyncWorker_1) [homeassistant.loader] Loaded ovo_energy from homeassistant.components.ovo_energy2023-01-24 15:32:09.990 INFO (SyncWorker_1) [homeassistant.loader] Loaded xiaomi_miio from homeassistant.components.xiaomi_miio2023-01-24 15:32:10.041 INFO (SyncWorker_1) [homeassistant.loader] Loaded life360 from homeassistant.components.life3602023-01-24 15:32:10.065 INFO (SyncWorker_1) [homeassistant.loader] Loaded emulated_roku from homeassistant.components.emulated_roku2023-01-24 15:32:10.103 INFO (SyncWorker_1) [homeassistant.loader] Loaded mutesync from homeassistant.components.mutesync2023-01-24 15:32:10.127 INFO (SyncWorker_1) [homeassistant.loader] Loaded smart_meter_texas from homeassistant.components.smart_meter_texas2023-01-24 15:32:10.150 INFO (SyncWorker_1) [homeassistant.loader] Loaded geocaching from homeassistant.components.geocaching2023-01-24 15:32:10.169 INFO (SyncWorker_1) [homeassistant.loader] Loaded unifiprotect from homeassistant.components.unifiprotect2023-01-24 15:32:10.181 INFO (SyncWorker_1) [homeassistant.loader] Loaded pushover from homeassistant.components.pushover2023-01-24 15:32:10.204 INFO (SyncWorker_1) [homeassistant.loader] Loaded iaqualink from homeassistant.components.iaqualink2023-01-24 15:32:10.240 INFO (SyncWorker_1) [homeassistant.loader] Loaded abode from homeassistant.components.abode2023-01-24 15:32:10.254 INFO (SyncWorker_1) [homeassistant.loader] Loaded lookin from homeassistant.components.lookin2023-01-24 15:32:10.293 INFO (SyncWorker_1) [homeassistant.loader] Loaded nzbget from homeassistant.components.nzbget2023-01-24 15:32:10.330 INFO (SyncWorker_1) [homeassistant.loader] Loaded tractive from homeassistant.components.tractive2023-01-24 15:32:10.360 INFO (SyncWorker_1) [homeassistant.loader] Loaded atag from homeassistant.components.atag2023-01-24 15:32:10.377 INFO (SyncWorker_1) [homeassistant.loader] Loaded onewire from homeassistant.components.onewire2023-01-24 15:32:10.428 INFO (SyncWorker_1) [homeassistant.loader] Loaded srp_energy from homeassistant.components.srp_energy2023-01-24 15:32:10.443 INFO (SyncWorker_1) [homeassistant.loader] Loaded rainmachine from homeassistant.components.rainmachine2023-01-24 15:32:10.460 INFO (SyncWorker_1) [homeassistant.loader] Loaded nobo_hub from homeassistant.components.nobo_hub2023-01-24 15:32:10.476 INFO (SyncWorker_1) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx2023-01-24 15:32:10.519 INFO (SyncWorker_1) [homeassistant.loader] Loaded xbox from homeassistant.components.xbox2023-01-24 15:32:10.539 INFO (SyncWorker_1) [homeassistant.loader] Loaded hunterdouglas_powerview from homeassistant.components.hunterdouglas_powerview2023-01-24 15:32:10.580 INFO (SyncWorker_1) [homeassistant.loader] Loaded screenlogic from homeassistant.components.screenlogic2023-01-24 15:32:10.595 INFO (SyncWorker_1) [homeassistant.loader] Loaded smartthings from homeassistant.components.smartthings2023-01-24 15:32:10.608 INFO (SyncWorker_1) [homeassistant.loader] Loaded meteoclimatic from homeassistant.components.meteoclimatic2023-01-24 15:32:10.629 INFO (SyncWorker_1) [homeassistant.loader] Loaded ambient_station from homeassistant.components.ambient_station2023-01-24 15:32:10.647 INFO (SyncWorker_1) [homeassistant.loader] Loaded hue from homeassistant.components.hue2023-01-24 15:32:10.664 INFO (SyncWorker_1) [homeassistant.loader] Loaded logi_circle from homeassistant.components.logi_circle2023-01-24 15:32:10.695 INFO (SyncWorker_1) [homeassistant.loader] Loaded azure_devops from homeassistant.components.azure_devops2023-01-24 15:32:10.698 INFO (SyncWorker_1) [homeassistant.loader] Loaded hyperion from homeassistant.components.hyperion2023-01-24 15:32:10.715 INFO (SyncWorker_1) [homeassistant.loader] Loaded gree from homeassistant.components.gree2023-01-24 15:32:10.754 INFO (SyncWorker_1) [homeassistant.loader] Loaded mill from homeassistant.components.mill2023-01-24 15:32:10.759 INFO (SyncWorker_1) [homeassistant.loader] Loaded min_max from homeassistant.components.min_max2023-01-24 15:32:10.764 INFO (SyncWorker_1) [homeassistant.loader] Loaded august from homeassistant.components.august2023-01-24 15:32:10.791 INFO (SyncWorker_1) [homeassistant.loader] Loaded inkbird from homeassistant.components.inkbird2023-01-24 15:32:10.808 INFO (SyncWorker_1) [homeassistant.loader] Loaded moat from homeassistant.components.moat2023-01-24 15:32:10.831 INFO (SyncWorker_1) [homeassistant.loader] Loaded volumio from homeassistant.components.volumio2023-01-24 15:32:10.835 INFO (SyncWorker_1) [homeassistant.loader] Loaded guardian from homeassistant.components.guardian2023-01-24 15:32:10.842 INFO (SyncWorker_1) [homeassistant.loader] Loaded flux_led from homeassistant.components.flux_led2023-01-24 15:32:13.406 INFO (MainThread) [homeassistant.setup] Setting up zha2023-01-24 15:32:13.407 INFO (MainThread) [homeassistant.setup] Setup of domain zha took 0.0 seconds2023-01-24 15:32:13.491 INFO (MainThread) [homeassistant.setup] Setup of domain group took 14.3 seconds2023-01-24 15:32:13.574 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.2023-01-24 15:32:13.583 INFO (SyncWorker_2) [homeassistant.loader] Loaded notify from homeassistant.components.notify2023-01-24 15:32:13.632 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.2023-01-24 15:32:13.636 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.2023-01-24 15:32:13.640 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.2023-01-24 15:32:13.643 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.2023-01-24 15:32:13.647 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.2023-01-24 15:32:13.651 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.2023-01-24 15:32:13.655 WARNING (MainThread) [homeassistant.setup] Setup of schedule is taking over 10 seconds.2023-01-24 15:32:16.947 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 17.5 seconds2023-01-24 15:32:17.052 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 17.6 seconds
2023-01-24 15:32:17.137 INFO (MainThread) [homeassistant.setup] Setting up dsmr
2023-01-24 15:32:17.138 INFO (MainThread) [homeassistant.setup] Setup of domain dsmr took 0.0 seconds
2023-01-24 15:32:17.394 INFO (MainThread) [homeassistant.setup] Setting up sensor
2023-01-24 15:32:17.397 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds
2023-01-24 15:32:17.430 WARNING (MainThread) [homeassistant.setup] Setup of script is taking over 10 seconds.
2023-01-24 15:32:17.451 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.454 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.456 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.462 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.464 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.466 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.478 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:17.480 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.history_stats
2023-01-24 15:32:19.422 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 19.8 seconds
2023-01-24 15:32:20.274 INFO (MainThread) [homeassistant.setup] Setting up template
2023-01-24 15:32:20.277 INFO (MainThread) [homeassistant.setup] Setup of domain template took 0.0 seconds2023-01-24 15:32:20.446 ERROR (MainThread) [homeassistant.components.history_stats.helpers] Error parsing template for field startTraceback (most recent call last):  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/helpers/template.py", line 420, in async_render    render_result = _render_with_context(self.template, compiled, **kwargs)  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/helpers/template.py", line 1915, in _render_with_context    return template.render(**kwargs)  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render    self.environment.handle_exception()  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception    raise rewrite_traceback_stack(source=source)  File "<template>", line 1, in top-level template code  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/jinja2/sandbox.py", line 393, in call    return __context.call(__obj, *args, **kwargs)ValueError: month must be in 1..12

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/history_stats/helpers.py", line 39, in async_calculate_period
    rendered = template.async_render()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/helpers/template.py", line 422, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: month must be in 1..12
2023-01-24 15:32:20.658 ERROR (MainThread) [homeassistant.components.history_stats.coordinator] Error fetching Verbruik vorige maand data: ValueError: month must be in 1..12
2023-01-24 15:32:20.956 INFO (MainThread) [homeassistant.setup] Setup of domain input_button took 21.3 seconds
2023-01-24 15:32:20.985 INFO (MainThread) [homeassistant.setup] Setup of domain schedule took 21.2 seconds
2023-01-24 15:32:21.578 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2023-01-24 15:32:21.673 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.dsmr
2023-01-24 15:32:21.856 INFO (MainThread) [homeassistant.setup] Setting up hardware
2023-01-24 15:32:22.192 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2023-01-24 15:32:22.195 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2023-01-24 15:32:22.198 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2023-01-24 15:32:22.200 INFO (MainThread) [homeassistant.components.light] Setting up light.template
2023-01-24 15:32:22.204 WARNING (MainThread) [homeassistant.components.sensor] Platform history_stats not ready yet: ValueError: month must be in 1..12; Retrying in background in 30 seconds
2023-01-24 15:32:22.480 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.energy
2023-01-24 15:32:22.886 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 23.6 seconds
2023-01-24 15:32:23.321 INFO (MainThread) [homeassistant.setup] Setting up climate
2023-01-24 15:32:23.358 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds
2023-01-24 15:32:23.433 INFO (MainThread) [homeassistant.setup] Setup of domain hardware took 1.6 seconds
2023-01-24 15:32:23.435 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 1.9 seconds
2023-01-24 15:32:23.554 INFO (MainThread) [homeassistant.setup] Setup of domain script took 19.5 seconds
2023-01-24 15:32:23.679 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 24.2 seconds
2023-01-24 15:32:23.712 INFO (MainThread) [homeassistant.setup] Setting up notify
2023-01-24 15:32:23.734 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds
2023-01-24 15:32:23.796 INFO (MainThread) [homeassistant.setup] Setting up switch
2023-01-24 15:32:23.811 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds
2023-01-24 15:32:23.886 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2023-01-24 15:32:23.888 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2023-01-24 15:32:23.936 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2023-01-24 15:32:23.964 INFO (MainThread) [hass_nabucasa.iot] Connected
2023-01-24 15:32:24.058 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 24.4 seconds
2023-01-24 15:32:24.222 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2023-01-24 15:32:24.295 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.4 seconds
2023-01-24 15:32:24.336 INFO (MainThread) [homeassistant.components.climate] Setting up climate.generic_thermostat
2023-01-24 15:32:24.338 INFO (MainThread) [homeassistant.components.climate] Setting up climate.generic_thermostat
2023-01-24 15:32:24.571 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2023-01-24 15:32:24.574 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2023-01-24 15:32:25.047 INFO (MainThread) [homeassistant.setup] Setting up automation
2023-01-24 15:32:25.109 INFO (MainThread) [snitun.utils.aiohttp_client] AioHTTP snitun client started on 127.0.0.1:49621
2023-01-24 15:32:25.634 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.6 seconds
2023-01-24 15:32:26.437 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:32:26.641 INFO (SyncWorker_0) [homeassistant.util.package] Attempting install of samsungtvws[async,encrypted]==2.5.0
2023-01-24 15:32:26.903 INFO (MainThread) [zigpy.ota.provider] Trådfri: OTA provider enabled
2023-01-24 15:32:26.988 INFO (MainThread) [snitun.utils.aiohttp_client] AioHTTP snitun client connected to: eu-west-2-2.ui.nabu.casa:443
2023-01-24 15:32:31.167 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:31.234 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 1 of 3)
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:35.043 INFO (MainThread) [zigpy.ota.provider] Trådfri: OTA provider enabled
2023-01-24 15:32:38.859 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:38.880 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 2 of 3)
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:42.429 INFO (MainThread) [zigpy.ota.provider] Trådfri: OTA provider enabled
2023-01-24 15:32:46.073 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
   await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:46.121 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 3 of 3)
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:46.141 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry socket://192.168.178.150:8888 for zha
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/__init__.py", line 112, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
    raise exc
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, in initialize
    await ezsp.connect()
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 120, in connect
    self._gw = await bellows.uart.connect(self._config, self)
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 382, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/bellows/uart.py", line 361, in _connect
    transport, protocol = await zigpy.serial.create_serial_connection(
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/zigpy/serial.py", line 33, in create_serial_connection
    transport, protocol = await loop.create_connection(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.150', 8888)
2023-01-24 15:32:59.620 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:33:00.694 INFO (MainThread) [hass_nabucasa.google_report_state] Connected
2023-01-24 15:33:11.623 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mobile_app
2023-01-24 15:33:32.639 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:34:05.679 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:34:12.437 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mobile_app
2023-01-24 15:34:38.700 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:34:40.759 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package samsungtvws[async,encrypted]==2.5.0: WARNING: Missing build requirements in pyproject.toml for multidict<7.0,>=4.5 from https://files.pythonhosted.org/packages/4a/15/bd620f7a6eb9aa5112c4ef93e7031bcd071e0611763d8e17706ef8ba65e0/multidict-6.0.4.tar.gz (from aiohttp>=3.8.1->samsungtvws[async,encrypted]==2.5.0).  WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.  error: subprocess-exited-with-error

  × Building wheel for multidict (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      *********************
      * Accelerated build *
      *********************
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/__init__.py -> build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/_compat.py -> build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/_abc.py -> build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/_multidict_py.py -> build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/_multidict_base.py -> build/lib.linux-armv7l-cpython-310/multidict
      running egg_info
      writing multidict.egg-info/PKG-INFO
      writing dependency_links to multidict.egg-info/dependency_links.txt
      writing top-level names to multidict.egg-info/top_level.txt
      reading manifest file 'multidict.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files found matching 'multidict/_multidict.html'
      warning: no previously-included files found matching 'multidict/*.so'
      warning: no previously-included files found matching 'multidict/*.pyd'
      warning: no previously-included files found matching 'multidict/*.pyd'
      no previously-included directories found matching 'docs/_build'
      adding license file 'LICENSE'
      writing manifest file 'multidict.egg-info/SOURCES.txt'
      /var/packages/python310/target/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'multidict._multilib' as data is deprecated, please list it in `packages`.
          !!

          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'multidict._multilib' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'multidict._multilib' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'multidict._multilib' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
         instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.

      !!

        check.warn(importable)
      copying multidict/__init__.pyi -> build/lib.linux-armv7l-cpython-310/multidict
      copying multidict/py.typed -> build/lib.linux-armv7l-cpython-310/multidict
      running build_ext
      building 'multidict._multidict' extension
      creating build/temp.linux-armv7l-cpython-310
      creating build/temp.linux-armv7l-cpython-310/multidict
      /github/workspace/toolchain/syno-armv7-7.0/work/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/github/workspace/toolchain/syno-armv7-7.0/work/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include -D__ARM_PCS_VFP=1 -I/github/workspace/spk/python310/work-armv7-7.0/install//var/packages/python310/target/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -L /github/workspace/spk/python310/work-armv7-7.0/install/var/packages/python310/target/lib -I /github/workspace/spk/python310/work-armv7-7.0/install/var/packages/python310/target/include -I/github/workspace/toolchain/syno-armv7-7.0/work/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include -D__ARM_PCS_VFP=1 -I/github/workspace/spk/python310/work-armv7-7.0/install//var/packages/python310/target/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -L /github/workspace/spk/python310/work-armv7-7.0/install/var/packages/python310/target/lib -I /github/workspace/spk/python310/work-armv7-7.0/install/var/packages/python310/target/include -fPIC -I/volume1/@appstore/homeassistant/env/include -I/var/packages/python310/target/include/python3.10 -c multidict/_multidict.c -o build/temp.linux-armv7l-cpython-310/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic      error: command '/github/workspace/toolchain/syno-armv7-7.0/work/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc' failed: No such file or directory      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for multidict
ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip
2023-01-24 15:34:40.860 INFO (SyncWorker_0) [homeassistant.util.package] Attempting install of samsungtvws[async,encrypted]==2.5.0
2023-01-24 15:35:11.743 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:35:13.332 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mobile_app
2023-01-24 15:35:44.857 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.213', 23)
2023-01-24 15:36:14.131 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mobile_app
2023-01-24 15:36:17.894 ERROR (MainThread) [homeassistant.components.dsmr] Error connecting to DSMR
Traceback (most recent call last):
  File "/volume1/@appstore/homeassistant/env/lib/python3.10/site-packages/homeassistant/components/dsmr/sensor.py", line 446, in connect_and_reconnect
    transport, protocol = await hass.loop.create_task(reader_factory())
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1070, in create_connection
    raise exceptions[0]
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 1054, in create_connection
    sock = await self._connect_sock(
  File "/var/packages/python310/target/lib/python3.10/asyncio/base_events.py", line 963, in _connect_sock
    await self.sock_connect(sock, address)
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/var/packages/python310/target/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
hgy59 commented 1 year ago

As documented in https://github.com/SynoCommunity/spksrc/wiki/FAQ-HomeAssistant IKEA Tradfri does not work in HA 2022.10.5.

hanshorstink commented 1 year ago

Thanks for the quick response! That really sucks. Any idea if and when it might be resolved?

hgy59 commented 1 year ago

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"
hanshorstink commented 1 year ago

Right, I hope that one does support Tradfri. Goodluck! Any hints on how I can roll back to the previous version?

hgy59 commented 1 year ago

@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)

  1. ssh into your diskstation
  2. use admin console (sudo su)
  3. cd /var/packages/homeassistant/target/env/bin
  4. ./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
hanshorstink commented 1 year ago

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.

hgy59 commented 1 year ago

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
hanshorstink commented 1 year ago

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.