After a good nights sleep, it has appeared. But, when I try to enable the integration (+ Lägg till integration) I get the following error:
And, directly after this error there are some relevant information in the log:
2021-12-23 06:04:53 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 130, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data, init_done)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/nibe/config_flow.py", line 74, in async_step_user
self.hass.helpers.network.get_url(prefer_external=True), AUTH_CALLBACK_URL
File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url
raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError
This is how my structure looks
[core-ssh nibe]$ pwd
/root/config/custom_components/nibe
[core-ssh nibe]$ git remote show origin
* remote origin
Fetch URL: https://github.com/elupus/hass_nibe.git
Push URL: https://github.com/elupus/hass_nibe.git
HEAD branch: master
Remote branches:
broadlink tracked
dev tracked
fan_speed tracked
master tracked
monitor tracked
state_class tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
[core-ssh nibe]$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
[core-ssh nibe]$ ls -l
total 144
-rw-r--r-- 1 root root 4193 Dec 22 19:26 README.md
-rw-r--r-- 1 root root 12427 Dec 22 19:26 __init__.py
drwxr-xr-x 2 root root 4096 Dec 23 06:04 __pycache__
-rw-r--r-- 1 root root 1442 Dec 22 19:26 binary_sensor.py
-rw-r--r-- 1 root root 18695 Dec 22 19:26 climate.py
-rw-r--r-- 1 root root 7338 Dec 22 19:26 config_flow.py
-rw-r--r-- 1 root root 1218 Dec 22 19:26 const.py
drwxr-xr-x 2 root root 4096 Dec 22 19:26 docs
-rw-r--r-- 1 root root 6084 Dec 22 19:26 entity.py
-rw-r--r-- 1 root root 4790 Dec 22 19:26 fan.py
-rw-r--r-- 1 root root 201 Dec 22 19:26 hacs.json
-rw-r--r-- 1 root root 248 Dec 22 19:26 manifest.json
-rw-r--r-- 1 root root 10076 Dec 22 19:26 sensor.py
-rw-r--r-- 1 root root 4974 Dec 22 19:26 services.py
-rw-r--r-- 1 root root 1769 Dec 22 19:26 services.yaml
-rw-r--r-- 1 root root 361 Dec 22 19:26 setup.cfg
-rw-r--r-- 1 root root 1820 Dec 22 19:26 strings.json
-rw-r--r-- 1 root root 1628 Dec 22 19:26 switch.py
-rw-r--r-- 1 root root 583 Dec 22 19:26 system_health.py
drwxr-xr-x 2 root root 4096 Dec 22 19:26 translations
-rw-r--r-- 1 root root 7110 Dec 22 19:26 water_heater.py
[core-ssh nibe]$ ls -l __pycache__/
total 36
-rw-r--r-- 1 root root 11833 Dec 23 06:04 __init__.cpython-39.pyc
-rw-r--r-- 1 root root 6993 Dec 23 06:04 config_flow.cpython-39.pyc
-rw-r--r-- 1 root root 1461 Dec 23 06:04 const.cpython-39.pyc
-rw-r--r-- 1 root root 4796 Dec 23 06:04 services.cpython-39.pyc
-rw-r--r-- 1 root root 822 Dec 23 06:04 system_health.cpython-39.pyc
I’ll upgrade my HA to 2021.12.4 and report back things changes.
Reg. HACS, I had it installed but my experience was not good. It slowed down my system quite a lot. Maybe I’ll give it a go again.
Any ideas what may cause this. My Home Assistant installation is fairly stock. Only added one custom component (Wyze) and one custom addition (Plejd).
The rest is just a bunch of ootb integrations (Tuya, Mosquitto, Google Cast) and additions (Duch DNS, Samba, File Editor, SSH/Terminal)
Thanks in advance,
/Marcus