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.65k stars 30.79k forks source link

Authentication broken with Wolf Smartset service #113492

Closed vidin453 closed 6 months ago

vidin453 commented 8 months ago

The problem

Last month something was changed on Wolf side - new mobile app. Probably they changed the protocol as well.

File "/usr/local/lib/python3.12/site-packages/wolf_smartset/wolf_client.py", line 95, in fetch_parameters desc = await self.request('get', 'api/portal/GetGuiDescriptionForGateway', params=payload) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/wolf_smartset/wolf_client.py", line 35, in request await self.authorize() File "/usr/local/lib/python3.12/site-packages/wolf_smartset/wolf_client.py", line 66, in authorize await self.authorize_and_session() File "/usr/local/lib/python3.12/site-packages/wolf_smartset/wolf_client.py", line 70, in authorize_and_session self.tokens = await self.token_auth.token(session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/wolf_smartset/token_auth.py", line 39, in token raise InvalidAuth wolf_smartset.token_auth.InvalidAuth

What version of Home Assistant Core has the issue?

core-2024.2.5

What was the last working version of Home Assistant Core?

core-2024.2.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Wolf SmartSet Service

Link to integration documentation on our website

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

Diagnostics information

home-assistant_wolflink_2024-03-15T09-03-28.411Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

mtielen commented 6 months ago

Hi, can someone help me to install the package and resolv the issue? I've already use the command "pip install" from terminal. I've reboot the sistem, reconfigured the app but the issue persist. What's the correct way for resolv the issue? Thanks

Wait till tonight version 2024.5 will be released and this will fix the issue once and for all or install the beta

Ok. I’ve installed the 2024.5 a few minutes ago. I’ve remove the Wolf Smartset app and i’ve reconfigured it. The problem persist 😖 what I have to do?? Thanks

You don't need to reconfigure it. As in this issue posted earlier if you ran earlier code you need to disable the integration for minimal 1 hour to clear the blockade on your IP number at the Wolf website. You can check this with trying to login from other device on the same network to the wolf smartset portal. Then enable the integration again and it will run again.

Wank-ster commented 6 months ago

Yay! I can confirm. Seems to be working again, running now smoothly for half an hour. Thanks a lot to @mtielen and everyone else who contributed.

drcolt commented 6 months ago

Hey, Updated this morning and it works, thank you very much! Br

schlac commented 6 months ago

I can also confirm this is fixed with HA 2024.5.0

vidin453 commented 6 months ago

Thanks @mtielen

mtielen commented 6 months ago

Thanks @mtielen

My pleasure I'm now also code owner. So if there are any future problems let me know. I will also look into how to improve it overtime. @janrothkegel had also some interesting idea's so let's see if we can progress on it. So my thanks goes out to him for granting me access to the library and of course to @torkleyy who did the initial authentication fix for the lib.