home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.61k stars 30.77k forks source link

Component Freebox : can't connect #24715

Closed manatlan closed 5 years ago

manatlan commented 5 years ago

Home Assistant release with the issue: 0.94.3

Last working Home Assistant release (if known): ?

Operating environment (Hass.io/Docker/Windows/etc.): py3 venv on raspberrypi

Component/platform: https://www.home-assistant.io/components/freebox

Description of problem:

freebox: Error on device update! 12:54 components/freebox/sensor.py (ERROR) - message first occured at 12:54 and shows up 3 times

Traceback (if applicable):

Log Details (ERROR)
Sun Jun 23 2019 12:54:53 GMT+0200 (Central European Summer Time)
freebox: Error on device update!
Traceback (most recent call last):
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 375, in async_device_update
    await self.async_update()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/components/freebox/sensor.py", line 57, in async_update
    await super().async_update()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/components/freebox/sensor.py", line 41, in async_update
    self._datas = await self._fbx.connection.get_status()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/aiofreepybox/api/connection.py", line 10, in get_status
    return await self._access.get('connection/')
  File "/home/pi/homeassistant/lib/python3.7/site-packages/aiofreepybox/access.py", line 112, in get
    return await self._perform_request(self.session.get, end_url)
  File "/home/pi/homeassistant/lib/python3.7/site-packages/aiofreepybox/access.py", line 82, in _perform_request
    await self._refresh_session_token()
  File "/home/pi/homeassistant/lib/python3.7/site-packages/aiofreepybox/access.py", line 67, in _refresh_session_token
    self.timeout)
  File "/home/pi/homeassistant/lib/python3.7/site-packages/aiofreepybox/access.py", line 54, in _get_session_token
    .format(json.dumps(resp)))
aiofreepybox.exceptions.AuthorizationError: Starting session failed (APIResponse: {"uid": "d5996a1e07403542c07017ae813968f1", "success": false, "msg": "Erreur d'authentification de l'application", "result": {"password_salt": "Bc+B99+lVEU+ed8sG7PdCPIufohfxGJt", "challenge": "eOtvxK9IIIpE3iA8gTnHR++vZubfIWvE"}, "error_code": "invalid_token"})

@SNoof85 ... une idée ?

SNoof85 commented 5 years ago

I'm in holiday for 1 week starting today. I'm far from home and can't have access to my environment. So I can't help as much as I would like and answer delay can be a bit long. Sorry.

Is that happening always ? I mean nothing works in Freebox component ?

manatlan commented 5 years ago

Is that happening always ?

it worked with my last freebox. But after a crash, free replaced it with a rev2.

I mean nothing works in Freebox component ? yes !

BTW, using python script with "aiofreepybox" works very well ... after accepting the client from the freebox front screen.

Perhaps, I should try to accept the HA client again ? But don't know how to replay the oauth ... Perhaps, I will need to destroy a file (which contein a token) somewhere but where it is ?

BTW : It can wait a week ;-) ... enjoy your trip !

On Sun, Jun 23, 2019 at 2:54 PM SNoof85 notifications@github.com wrote:

I'm in holiday for 1 week starting today. I'm far from home and can't have access to my environment. So I can't help as much as I would like and answer delay can be a bit long. Sorry.

Is that happening always ? I mean nothing works in Freebox component ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/24715?email_source=notifications&email_token=AABEZQWGBOEPLO5SIIMQCPLP35XBRA5CNFSM4H2YU2S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK5X6Q#issuecomment-504749050, or mute the thread https://github.com/notifications/unsubscribe-auth/AABEZQSN7H4XDJ4ITRO37XTP35XBRANCNFSM4H2YU2SQ .

manatlan commented 5 years ago

Yes :! I've delete the .homeassistant/freebox.conf : and it works again ! Thanks

ENJOY your trip !

SNoof85 commented 5 years ago

Glad you sort it out !