cjaliaga / home-assistant-aquarea

Home Assistant integration for Panasonic Aquarea devices connected to Aquarea Smart Cloud
MIT License
85 stars 13 forks source link

[Bug]: Panasonic changed their login system - Integration cannot log in into Aquarea Smart Cloud #105

Open hryhorash opened 8 months ago

hryhorash commented 8 months ago

The problem

Connection to the cloud stopped working. When i disabled the integration and tried to login via the panasonic website, I encountered the 2fa process, that was not there before. Probably it is the cause of the problem, but I could not find the option to disable 2fa in the panasonic account.

Then, I tried to reconnect my panasonic account from scratch, and it did not work. P.S. I also received a verification code from panasonic via sms

What version of Home Assistant Core are you running?

core-2024.3.0

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

v0.6.3

Device description

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

No response

Anything in the logs?

Logger: custom_components.aquarea.config_flow
Source: custom_components/aquarea/config_flow.py:144
integration: Aquarea Smart Cloud ([documentation](https://github.com/cjaliaga/home-assistant-aquarea), [issues](https://github.com/cjaliaga/home-assistant-aquarea/issues))
First occurred: 08:19:16 (2 occurrences)
Last logged: 08:20:16

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/aquarea/config_flow.py", line 144, in _validate_input
    await self._api.login()
  File "/usr/local/lib/python3.12/site-packages/aioaquarea/core.py", line 246, in login
    await self._login_production()
  File "/usr/local/lib/python3.12/site-packages/aioaquarea/core.py", line 266, in _login_production
    response: aiohttp.ClientResponse = await self.request(
                                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aioaquarea/core.py", line 214, in request
    raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-0999 - Logged out due to system error. Please login again after a while.

Additional information

No response

robbo1001 commented 8 months ago

Working brilliantly here. A big thanks for all the hard work!

stephanlarsson commented 8 months ago

Great job! Thank you so much for the fix!!!! ❤️

man010 commented 8 months ago

Thanks so much Carlos for your efforts to have this integration working again. I confirm it seems to be working flawlessly since this morning. Great job !👏

cjaliaga commented 8 months ago

Hi,

We've found an issue when the token expires and its refresh process that lets the integration in a state where is not able to retrieve the data until it's reloaded. You'll find the entities as "unavailable". This would probably happen once every 24H, correlating with token expiration. I'll try to release a hotfix at the earliest, for the time being please reload the integration.

Thanks!

rcarvajales commented 7 months ago

Hi, Thanks for the fix, the login itself now works for me! however, I can no longer see the climate entity, only the water heater and the exterior temperature. But I lost the hability of changing climate parameters, am I the only one?

rcarvajales commented 7 months ago

Hi, Thanks for the fix, the login itself now works for me! however, I can no longer see the climate entity, only the water heater and the exterior temperature. But I lost the hability of changing climate parameters, am I the only one?

Ok, in case someone find the same issue, please double check your HA Core version is 2024.02 or latest as stated in the Readme.md. My climate entity is working again. Thanks a lot!

cjaliaga commented 7 months ago

I just released https://github.com/cjaliaga/home-assistant-aquarea/releases/tag/v0.7.1 that should fix the refresh issue (entities unavailable after 24H). Please let me now if you find any issue.

@os11k @denisbobovnik this version hopefully should also mitigate the issue that you folks are having.

arnolds77 commented 7 months ago

Thank you cjaliaga. Great job!!!

denisbobovnik commented 7 months ago

that fixed it for me yes!! does anyone know how can i get the full spectre from -5 to 5 settings of my heat pump to homekit? it only shows from 0 to 5.

rivojo commented 7 months ago

Let's show our support for the Carlos! Every contribution helps keep his great work going. https://buymeacoffee.com/cjaliaga

mirddin commented 2 weeks ago

Seems like they changed smth again today, integration stopped working and MFA is enforced.