Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freebox integration is no longer working due to SSLCertVerificationError #132333

Closed
Dgigie opened this issue Dec 5, 2024 · 170 comments · Fixed by hacf-fr/freebox-api#737 or #133455
Closed

Comments

@Dgigie
Copy link

Dgigie commented Dec 5, 2024

The problem

Following the installation of the Home Assistant update
(2024.11.3), the freebox delta integration no longer works. I restarted the Freebox, restarted HA but the problem persists.
Kind regards

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

core-2024.11.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Freebox

Link to integration documentation on our website

https://www.home-assistant.io/integrations/freebox

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Dec 5, 2024

Hey there @hacf-fr, @Quentame, mind taking a look at this issue as it has been labeled with an integration (freebox) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of freebox can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign freebox Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


freebox documentation
freebox source
(message by IssueLinks)

@epenet epenet changed the title Update 2024.11.3 The freebox delta integration no longer Dec 5, 2024
@raffoul
Copy link

raffoul commented Dec 5, 2024

I have the same issue after upgrading HA to 2024.12. Maybe a breaking change with the last firmware of Free because I had 2024.11.3.

@Dgigie
Copy link
Author

Dgigie commented Dec 5, 2024

I don't think it comes from the Freebox firmware because it worked with version 2024.11.3.

@raffoul
Copy link

raffoul commented Dec 5, 2024

Exception found in the logs :

The cause :
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host xxx.fbxos.fr:12483 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1020)')]

2024-12-05 08:25:31.030 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0xffff84016450>, <Purpose.SERVER_AUTH: _ASN1Object(nid=129, shortname='serverAuth', longname='TLS Web Server Authentication', oid='1.3.6.1.5.5.7.3.1')>) inside the event loop by integration 'freebox' at homeassistant/components/freebox/__init__.py, line 26: await api.open(entry.data[CONF_HOST], entry.data[CONF_PORT]) (offender: /usr/local/lib/python3.13/ssl.py, line 722: context.load_default_certs(purpose)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+freebox%22

For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once
    handle._run()
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
    result = await _async_setup_component(hass, domain, config)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr>
    create_eager_task(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 788, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
    await self.__async_setup_with_context(hass, integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/freebox/__init__.py", line 26, in async_setup_entry
    await api.open(entry.data[CONF_HOST], entry.data[CONF_PORT])


2024-12-05 08:25:31.355 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxx.fbxos.fr for freebox
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1116, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs, sock=sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1182, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        ssl_shutdown_timeout=ssl_shutdown_timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1215, in _create_connection_transport
    await waiter
  File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 578, in _on_handshake_complete
    raise handshake_exc
  File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 560, in _do_handshake
    self._sslobj.do_handshake()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/ssl.py", line 951, in do_handshake
    self._sslobj.do_handshake()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1020)

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/freebox/__init__.py", line 30, in async_setup_entry
    freebox_config = await api.system.get_config()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/freebox_api/api/system.py", line 9, in get_config
    return await self._access.get("system/")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/freebox_api/access.py", line 122, in get
    return await self._perform_request(self.session.get, end_url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/freebox_api/access.py", line 86, in _perform_request
    await self._refresh_session_token()
  File "/usr/local/lib/python3.13/site-packages/freebox_api/access.py", line 69, in _refresh_session_token
    session_token, session_permissions = await self._get_session_token(
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self.base_url, self.app_token, self.app_id, self.timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/freebox_api/access.py", line 45, in _get_session_token
    challenge = await self._get_challenge(base_url, timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/freebox_api/access.py", line 28, in _get_challenge
    r = await self.session.get(url, timeout=timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        req, traces=traces, timeout=real_timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1394, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1363, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1118, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host xxx.fbxos.fr:12483 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1020)')]
2024-12-05 08:25:31.590 ERROR (ImportExecutor_0) [homeassistant] Error doing job: Unclosed client session (None)

@PtiBed0
Copy link

PtiBed0 commented Dec 5, 2024

Hello, i have the same problem with Freebox Revolution since last HA update
Core 2024.12.0
Supervisor 2024.11.4
Operating System 14.0
Interface utilisateur 20241127.4
Thanks

@otello86
Copy link

otello86 commented Dec 5, 2024

Hi,
same error here since last HA update 2024.12
Core 2024.12.0
Supervisor 2024.11.4
Operating System 14.0
Interface utilisateur 20241127.4

With the same error in the logs :

Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1116, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1182, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
ssl_shutdown_timeout=ssl_shutdown_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1215, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 578, in _on_handshake_complete
raise handshake_exc
File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 560, in _do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/ssl.py", line 951, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1020)

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

@Minims
Copy link
Contributor

Minims commented Dec 5, 2024

Same issue since upgrade to 2024.12.0, CERTIFICATE_VERIFY_FAILED error with Freebox Pop.

@raffoul
Copy link

raffoul commented Dec 5, 2024

I think the issue is in the freebox-api package : https://freebox-api.readthedocs.io/en/latest/
The package seems to work only with python 3.11 while home assistant 2024.12 uses python 3.13.

Documentation of The freebox API :

When you access a Freebox with its default-assigned domain (ending in fbxos.fr), the library verifies its certificate by automatically trusting the Freebox certificate authority.

This is the feature that does not work with python 3.13.

@PtiBed0
Copy link

PtiBed0 commented Dec 5, 2024

Hello,
For information, i have a Rpi with previous HA version and Freebox integration works perfectly
Thanks

@XAV59213
Copy link

XAV59213 commented Dec 5, 2024

I have the same issue after upgrading HA to 2024.12. Maybe a breaking change with the last firmware of Free because I had 2024.11.3.

@raffoul
Copy link

raffoul commented Dec 5, 2024

I have the same issue after upgrading HA to 2024.12. Maybe a breaking change with the last firmware of Free because I had 2024.11.3.

No. The root cause is the step where ssl should be verified. With 2024.11.3, the last firmware of Free works.

@avbfr
Copy link

avbfr commented Dec 5, 2024

Same issue here with Delta.

@Gonioul
Copy link

Gonioul commented Dec 5, 2024

Are letsencrypt CA's up to date in the containers?

My Freebox Revolution cert is using CAs "R10" then "ISRG Root X1"

See this: https://letsencrypt.org/certificates/

@toinourat
Copy link

I have pop and same problem,
I broke the golden rule, if it work don't touch

@Gonioul
Copy link

Gonioul commented Dec 5, 2024

Unfortunately, certificates expire...

@raffoul
Copy link

raffoul commented Dec 5, 2024

Are letsencrypt CA's up to date in the containers?

My Freebox Revolution cert is using CAs "R10" then "ISRG Root X1"

See this: https://letsencrypt.org/certificates/

No this is not the root cause because it works with HA <= 2024.11.4
Probably a dependency upgraded by HA/python3.13 and used by the integration.
I think a maintenair should have a look.

@Quentame Quentame changed the title The freebox delta integration no longer Freebox integration is no longer working after upgrade to 2024.12.0 Dec 5, 2024
@Quentame Quentame changed the title Freebox integration is no longer working after upgrade to 2024.12.0 Freebox integration is no longer working due to SSLCertVerificationError Dec 5, 2024
@Gonioul
Copy link

Gonioul commented Dec 5, 2024

Looks like a strict ssl mode is now the default in python.

@Quentame
Copy link
Member

Quentame commented Dec 5, 2024

Hi !
Maintainer of the integration here !
I'll look into it soon.

@Quentame
Copy link
Member

Quentame commented Dec 5, 2024

Working on my installation
HA-core: 2024.11.1
FreeboxOS: 4.8.16 (latest)

So, but reading all previous comments:

Working ? Versions
2024.11.1
2024.11.2
2024.11.3
2024.12.0

Am I right ?

@Quentame
Copy link
Member

Quentame commented Dec 5, 2024

@Dgigie : Are you agree with me about that ⬆️ ?

Because you said both that 2024.11.3 was the issue (in the issue description) and work (in a comment) 😅

@Ozaroth
Copy link

Ozaroth commented Dec 16, 2024

@Titou84240 Je suis pas expert en SSL mais pour simplifier: le HTTPS signifie juste que l'échange entre toi et la Freebox est "sécurisé" dans le sens ou grâce au certificat etc tu est sûr de bien parler avec ta Freebox (en gros hein) mais ça n'empêche pas quelqu'un qui connais ton IP ou ton domaine freeboxos ou les bots (qui scanne les IP à la recherche de port ouvert) de parler aussi avec ta Freebox.

Dans un premier temps tu peut essayer de reconfigurer l'intégration HA manuellement en précisant ton domaine freeboxos et en entrant le port 443, si ça fonctionne tu peut désactiver le port distant (2eme photo) et voir si l'intégration fonctionne toujours.

Si ça ne marche pas avec le port 443 il faudra alors passer par un certificat autosigné qui lui fonctionnera sur le port 443.
Ou la modif du fichier (voir plus haut dans le thread) qui désactive la vérification SSL.

@theblackhole
Copy link

@SamyDjemai:

On my Freebox, when going to http://mafreebox.freebox.fr/api_version, I see "api_version":"12.2", however the provided documentation says Current API version is “5.0” 🤔 not sure what's going on with versioning at Free

It's just an out-of-date page of the documentation, if you go to "Api Changes", you will see newer API versions

@Quentame
Copy link
Member

Fix on the dependency ✅ hacf-fr/freebox-api#737
Dependancy released ✅ https://github.com/hacf-fr/freebox-api/releases/tag/v1.2.0
Using this new dependency on HA 🔃 #133455

@Dgigie
Copy link
Author

Dgigie commented Dec 18, 2024

Fix on the dependency ✅ hacf-fr/freebox-api#737 Dependancy released ✅ https://github.com/hacf-fr/freebox-api/releases/tag/v1.2.0 Using this new dependency on HA 🔃 #133455

perfect I knew we could count on you :-) thanks again for the great job !!!

@Fwed666
Copy link

Fwed666 commented Dec 18, 2024

Fonctionne parfaitement avec la méthode @Titou84240 👍

Ps : Je rappelle qu'il ne faut pas mettre le " https:// " dans l'adresse

@Titou84240
Copy link

Fonctionne parfaitement avec la méthode @Titou84240 👍

Ps : Je rappelle qu'il ne faut pas mettre le " https:// " dans l'adresse

Juste attention sur ma méthode , il y a une brêche comme expliqué par @Ozaroth , j'ai pas encore pu tester de changer le port par le 443.

@Fwed666
Copy link

Fwed666 commented Dec 18, 2024

Juste attention sur ma méthode , il y a une brêche comme expliqué par @Ozaroth , j'ai pas encore pu tester de changer le port par le 443.

Mouais, j'ai changé d'IP et de port et ça ne fonctionne plus.
En gros, ça fonctionne que si tu ne "sécurises" pas tes ports !
Je rejoins @Ozaroth ... Effectivement, c'est pas terrible.

@Titou84240
Copy link

Juste attention sur ma méthode , il y a une brêche comme expliqué par @Ozaroth , j'ai pas encore pu tester de changer le port par le 443.

Mouais, j'ai changé d'IP et de port et ça ne fonctionne plus. En gros, ça fonctionne que si tu ne "sécurises" pas tes ports ! Je rejoins @Ozaroth ... Effectivement, c'est pas terrible.

Il te reste deux options comme il l'a cité dans son post :

"Si ça ne marche pas avec le port 443 il faudra alors passer par un certificat autosigné qui lui fonctionnera sur le port 443.
Ou la modif du fichier (voir plus haut dans le thread) qui désactive la vérification SSL."

@dvd-j
Copy link

dvd-j commented Dec 18, 2024

Hello afternoon,
All this is good for people who want to tinker.

For my part, I performed a restore to return to version 2024.11.3 when the integration was still working.

I've been following this post since the incident started, and HA has already released 3 new versions 2024.12. (2024.12.4)

Do you know if there will be a version that fixes this problem soon?

I would still like to thank you for your work.

@titis14
Copy link

titis14 commented Dec 18, 2024

Hello afternoon, All this is good for people who want to tinker.

For my part, I performed a restore to return to version 2024.11.3 when the integration was still working.

I've been following this post since the incident started, and HA has already released 3 new versions 2024.12. (2024.12.4)

Do you know if there will be a version that fixes this problem soon?

I would still like to thank you for your work.

Hi, the same solutions are not sustainable and jump if you have an update. I tested with a domain name and port but I never have the message on the freebox to authorize the integration. For the moment I stayed in 2024.11.
On the other hand the problem is that on the Mini 4k? A colleague has a Delta with HA up to date he is not the problem.

@Link0Darck
Copy link

Link0Darck commented Dec 19, 2024

A ce que je vois le problème n'est toujours pas résolue et que je ne sais toujours pas ou et comment certain on modifier la vérification SSL mais bon obliger d'attendre encore.

@Quentame
Copy link
Member

Quentame commented Dec 19, 2024

A ce que je vois le problème n'est toujours pas résolue et que je ne sais toujours pas ou et comment certain on modifier la vérification SSL mais bon obliger d'attendre encore.

Il faut attendre la prochaine release pour que le fix soit livré (2024.12.5 normalement).

Encore une fois, j'ai déjà fourni une solution de contournement, il y a 2 semaines, ici #132333 (comment)

ça a toujours marché chez moi car j'utilise dès le début cette solution.

Malheureusement le problème arrive à un moment où je suis très occupé, aussi bien dans ma vie perso que pro, désolé !

@Quentame
Copy link
Member

Quentame commented Dec 20, 2024

Bonjour tout le monde !

La correction a été livré 🎉en version 2024.12.5 !

Après mise à jour d'HA, merci de mettre un ❤️ à ce message si le problème a été résolu de votre côté, et un 👎 et un commentaire si ça marche pas.


Hi everyone !

The fix hase been released 🎉in version 2024.12.5 !

After you updated HA, please put a ❤️ to this message if it solves the issue on your side, and a 👎 and a comment if it does not work.

@titis14
Copy link

titis14 commented Dec 20, 2024

Salut, merci à toi pour la correction tout est OK

@sPioT
Copy link

sPioT commented Dec 20, 2024

malheureusement cela ne fonctionne pas pour moi.

J'ai essayé directemnt avec la découverte de la freebox puis dans un second temps via l'ajout manuel en utilisant le nom de domaine que j'utilise depuis longtemps. A chaque fois j'ai dans les logs le message suivant (j'ai caché le salt et le challenge ;) ):

2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant.components.freebox.config_flow] Starting session failed (APIResponse: {"uid": "cbe5f6a24ea0b89b603dbefcb21eabe5", "success": false, "msg": "Erreur d\u2019authentification de l\u2019application", "result": {"password_salt": "*", "challenge": ""}, "error_code": "invalid_token"})
2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)

@Quentame
Copy link
Member

malheureusement cela ne fonctionne pas pour moi.

J'ai essayé directemnt avec la découverte de la freebox puis dans un second temps via l'ajout manuel en utilisant le nom de domaine que j'utilise depuis longtemps. A chaque fois j'ai dans les logs le message suivant (j'ai caché le salt et le challenge ;) ):

2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant.components.freebox.config_flow] Starting session failed (APIResponse: {"uid": "cbe5f6a24ea0b89b603dbefcb21eabe5", "success": false, "msg": "Erreur d\u2019authentification de l\u2019application", "result": {"password_salt": "*", "challenge": ""}, "error_code": "invalid_token"})
2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2024-12-20 14:31:35.643 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)

C'est pas la même erreur, là c'est un problème d'authentification.

T'as regardé si la box te proposes de toucher la flèche droite pour se connecter ?

Essaie aussi en supprimant ton fichier d'authentification dans [dossier_ha]/.storage/freebox/[ton_dns] et reconfigurer l'intégration

@sPioT
Copy link

sPioT commented Dec 20, 2024

Merci. Il y avait encore des restes des installations précédentes.

@phid78
Copy link

phid78 commented Dec 20, 2024

Bonjour @Quentame, je ne sais pas si tu en as profité pour intégrer les volets, mais de mon coté, il remonte toujours pas.

@dvd-j
Copy link

dvd-j commented Dec 20, 2024

Salut,
Merci c'est top.
Bonnes fêtes !

@Fwed666
Copy link

Fwed666 commented Dec 20, 2024

Merciiiiiii !!

@SeByDocKy
Copy link

Works flawless now. Thx

@nagubal
Copy link

nagubal commented Dec 24, 2024

Après suppression du précédent fichier sous .storage/freebox, j'ai pu rajouté à nouveau l'intégration.
Un grand merci!

@ilMartiniano
Copy link

ilMartiniano commented Dec 29, 2024

Buongiorno a tutto il mondo!

La correzione a été livré 🎉en versione 2024.12.5 !

Après mise à jour d'HA, merci de mettre un ❤️ à ce message si le problème a été résolu de votre côté, et un 👎 et un commentaire si ça marche pas.

Ciao a tutti !

La correzione è stata rilasciata nella versione 2024.12.5 !

Dopo aver aggiornato HA, metti un ❤️ a questo messaggio se risolve il problema per te, e un 👎 e un commento se non funziona.

surely for the French freeboxes it is solved, but for the Italian iliadboxes the problem still persists in this version of ha

@Quentame
Copy link
Member

Quentame commented Jan 5, 2025

surely for the French freeboxes it is solved, but for the Italian iliadboxes the problem still persists in this version of ha

Okay, that's because we specify the URLs to disable the certificate authority, see: https://github.com/hacf-fr/freebox-api/pull/737/files

Following on #133246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment