Intégration Freebox Delta impossible

Bonjour à tous et toutes

Mon problème

Je n’arrive pas a intégrer ma Freebox Delta a mon HA. La box ne m’affiche pas la demande d’intégration.

HomeAssistant Freebox 2024-01-20 122441 1


Quand je clique sur valider, j’ai le message ci dessus qui s’affiche.

Coté Freebox (mode Routeur), l’association est possible, je l’ai déjà fait plusieurs fois déjà pour d’autres usages.

Merci beaucoup

Ma configuration


[center] |Version|core-2024.1.4|
| — | — |
|Type d’installation|Home Assistant OS|
|Développement|false|
|Supervisor|true|
|Docker|true|
|Utilisateur|root|
|Environnement virtuel|false|
|Version de Python|3.11.6|
|Famille du système d’exploitation|Linux|
|Version du système d’exploitation|6.1.71-haos|
|Architecture du processeur|x86_64|
|Fuseau horaire|Europe/Paris|

HA installé sur une VM hébergé sur un NAS synologic

|Répertoire de configuration|/config|[/center]


Bj

Résumé

Mon Problème:
Je ne vois nulle part Bonjour et merci

Resolu :slight_smile: :wink:

2 « J'aime »

Bonjour, Mince c’est vrai, veuillez m’excuser. je suis allé trop vite. C’est corrigé.

Pour ma première j’ai pas fait fort sur le coup.

2 « J'aime »

Bj

regarde dans la box si tu as pas valider une ancienne « validation »

freebox

Bj,

Il y a des validations (Vidéothèque, Freebox Connect) mais pas pour Home assistant

Regarde dans les journaux de HA , tu as peut être des infos supplémentaire au sujet de ton erreur

BJ, en effet, il y a un log d’erreur :

Logger: homeassistant.components.freebox.config_flow
Source: components/freebox/config_flow.py:68
Integration: freebox (documentation, issues)
First occurred: 11:46:27 (15 occurrences)
Last logged: 13:35:44

Unknown error connecting with Freebox router at d44vv6yx.fbxos.fr
Traceback (most recent call last):
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 1085, in create_connection
raise exceptions[0]
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 1069, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 973, in _connect_sock
await self.sock_connect(sock, address)
File « /usr/local/lib/python3.11/asyncio/selector_events.py », line 628, in sock_connect
return await fut
^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/selector_events.py », line 668, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed (‹ 88.166.38.12 ›, 55025)

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

Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/components/freebox/config_flow.py », line 68, in async_step_link
await fbx.open(self._data[CONF_HOST], self._data[CONF_PORT])
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 83, in open
self._access = await self._get_freebox_access(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 162, in _get_freebox_access
app_token, track_id = await self._get_app_token(base_url, app_desc, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 226, in _get_app_token
r = await self._session.post(url, data=data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/client.py », line 574, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1235, in _create_direct_connection
raise last_exc
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1000, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host d44vv6yx.fbxos.fr:55025 ssl:default [Connect call failed (‹ 88.166.38.12 ›, 55025)]

quand tu met un journal/code sert toi de la balise </> c’est plus lisible :wink:
Capture d'écran 2024-01-20 141833
balise

Logger: homeassistant.components.freebox.config_flow
Source: components/freebox/config_flow.py:68
Integration: freebox (documentation, issues)
First occurred: 11:46:27 (15 occurrences)
Last logged: 13:35:44

Unknown error connecting with Freebox router at d44vv6yx.fbxos.fr
Traceback (most recent call last):
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 1085, in create_connection
raise exceptions[0]
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 1069, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/base_events.py », line 973, in _connect_sock
await self.sock_connect(sock, address)
File « /usr/local/lib/python3.11/asyncio/selector_events.py », line 628, in sock_connect
return await fut
^^^^^^^^^
File « /usr/local/lib/python3.11/asyncio/selector_events.py », line 668, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed (‹ 88.166.38.12 ›, 55025)

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

Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/components/freebox/config_flow.py », line 68, in async_step_link
await fbx.open(self._data[CONF_HOST], self._data[CONF_PORT])
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 83, in open
self._access = await self._get_freebox_access(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 162, in _get_freebox_access
app_token, track_id = await self._get_app_token(base_url, app_desc, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/freebox_api/aiofreepybox.py », line 226, in _get_app_token
r = await self._session.post(url, data=data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/client.py », line 574, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1235, in _create_direct_connection
raise last_exc
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/site-packages/aiohttp/connector.py », line 1000, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host d44vv6yx.fbxos.fr:55025 ssl:default [Connect call failed (‹ 88.166.38.12 ›, 55025)]

Si c’est résolu, merci de cliquer sur le symbole dans la réponse concernée,

Hello
Essayez via l’assonance Samba ou autre moyen d’aller supprimer tous ceux qui se trouve ici
storage\freebox

Ce sont les fichiers d’authentification a première vue

Et une fois supprimé vous pourrez refaire l’appairage

@Yoyouri
il l’as déja fait ca

Désolé je n’ai pas fait le lien avec l’autre post

Alors il faut qu’il essaye avec une autre intégration en supprimant au préalable tous les fichiers liés au intégration Freebox

1 « J'aime »

Ce qui est bizarre c’est que mon répertoire Freebox est vide
Ou sont donc stockées les informations d’intégration?

De quel sous répertoire du niveau du dessus

Bj,

je parle du répertoire : /Config/.storage/freebox

J’ai trouvé une information sur le fichier de configuration pour la Freebox, mais je n’arrive pas a savoir ou est ce fichier. J’aimerais y jeter un oeil:

freebox:
  host: foobar.fbxos.fr
  port: 1234

cela ce met dans configuration.yaml

Question idiote sans doute mais a quel endroit dans le fichier configuration.yaml car le mien est quasi « vide ».


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

freebox:
  host: foobar.fbxos.fr
  port: 1234
1 « J'aime »

Bj,

Cela fonctionne enfin !!!
J’ai voulu configurer l’accès à HA depuis « l’extérieur » en utilisant pour le moment DuckDNS.
Et en modifiant la configuration de ma Freebox pour faire la redirection de port, j’ai vu que la règle ci dessous était désactivée …

Capture d'écran 2024-01-20 205110 2

En la réactivant l’intégration a fonctionnée !!!

Merci a tous d’avoir prit le temps de me répondre.