core: Freebox component - Error during setup of component freebox
Home Assistant release with the issue: 0.103.6 Last working Home Assistant release (if known): I’m using the component for the first time so no relevant answer… Operating environment (Hass.io/Docker/Windows/etc.): Hassio supervisor 195, HassOS 3.5 Component/platform: https://www.home-assistant.io/components/freebox/
Description of problem: can’t make it working, might be caused by the fact that my Freebox One is in bridge mode.
Error during setup of component freebox
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 958, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 945, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 473, in sock_connect
return await fut
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 478, in _sock_connect
sock.connect(address)
OSError: [Errno 101] Network unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/freebox/__init__.py", line 47, in async_setup
await async_setup_freebox(hass, config, host, port)
File "/usr/src/homeassistant/homeassistant/components/freebox/__init__.py", line 68, in async_setup_freebox
await fbx.open(host, port)
File "/usr/local/lib/python3.7/site-packages/aiofreepybox/aiofreepybox.py", line 66, in open
self._access = await self._get_freebox_access(host, port, self.api_version, self.token_file, self.app_desc, self.timeout)
File "/usr/local/lib/python3.7/site-packages/aiofreepybox/aiofreepybox.py", line 124, in _get_freebox_access
app_token, track_id = await self._get_app_token(base_url, app_desc, timeout)
File "/usr/local/lib/python3.7/site-packages/aiofreepybox/aiofreepybox.py", line 181, in _get_app_token
r = await self._session.post(url, data=data, timeout=timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host XXXXX.fbxos.fr:XXXXX ssl:None [Network unreachable]
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
freebox:
host: XXXXX.fbxos.fr
port: XXXXX
Additional information:
I strictly followed the documentation but I start asking myself if the fact that the freebox is in bridge mode could be the cause of the issue.
I need the component for using the freebox.reboot service particularly because the freebox looses internet connection time to time most likely because it is in bridge mode (known issue). The only way to get the connection back is to reboot the freebox.
If the fact I’m using it not as a router, would that be even possible to make only the freebox.reboot service accessible for non-router users ?
Thanks 😉
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 19 (7 by maintainers)
Nope, I’ve been wrong. I just deleted all previous authorizations of HA in Freebox OS and redid the initial setup. It seems to be OK…