Fix compatibility with aioaquarea 1.0.2+ (new authentication)#148
Fix compatibility with aioaquarea 1.0.2+ (new authentication)#148maddandy wants to merge 8 commits into
Conversation
|
do you think, the code will be update for this improvement? |
|
@hoschiking I m not the owner of that repository… you can update the code with my branch in your home assistant plugin folder. That’s what I did to validate my work. |
|
Yes of course, but I'm not able to do this. |
|
The changes in sensor.py and init.py I allready done. |
|
@hoschiking I think the easy way it's to add a custom repository in HA
And click on "Add". The "new" version sould be available in HACS
You will be able to add a new integration, like usual but select the "Patched" version
|
|
It works !!!! Thank you !!!! :-) |
|
Hi! is that mean that they blocked my local IP or something? |
|
@pzdpro , It's seems weird ... |
|
I tried but still not working. It was working fine form few months and it stops while ago. |
I can confirm it, no possible to connect from HA (error 403), changing my IP address on phone (over VPN), it started to work. After few hours, from mobile again with my regular IP public address, it worked again. Starting HA --> block error 403 again... T. |
|
I think I found the root cause of the 403 errors and created a fix. The ProblemThe default polling intervals are way too aggressive:
This triggers Panasonic's rate limiting/IP blocking very quickly, especially Also, the Aquarea Smart Cloud API doesn't refresh data that frequently anyway, My FixI forked the repo and changed the intervals to more reasonable values: DEFAULT_SCAN_INTERVAL_SECONDS = 120 # 2 minutes instead of 10 seconds This reduces API calls from 360/hour to 30/hour (12x reduction). How to Install
Important: Use a Separate Account!Create a second Panasonic account for Home Assistant. Don't use the same
Let me know if this helps resolve the 403 errors! |
|
Still not working for me. Mobile phone, HA APP, local wifi: i get info "already_in_progress" I dont use original comfort cloud app. I just logged in and logout yesterday just to try is it work (it works fine). Should i create a new account anyway even if i used it only for HA in the past? |
|
I guess it's not mandatory in your case... the purpose it's to avoid multiple connection for the same user but with ip and/or different device . I guess there is a threshold in their side with that criteria. What do you means with "Mobile phone, HA APP, local wifi or mobile network", Home Assistant is connected into your network with his own connection (wifi or rj45), the plugin used the physical connection where home assistant is installed (docker, linux, dedicated box, and so on ... not your mobile. Your mobile is just a client to the Home Assistant. |
|
I just tried different options an i supossed that will not changed anything if i use mobile network or home wifi. |
I have same issue... |
You can check your logs here : https://my.home-assistant.io/redirect/logs/ |
|
@maddandy - please enable issues in your fork, now it is not possible to raise issues there |
|
x-app-version should be bumped to 4.0.0 (it was 3.1.1 for me before, new app version came out and the integration couldn't start (401)). |










markdown
Summary
This PR fixes the integration to work with the latest aioaquarea library (main branch) which includes the new Panasonic authentication mechanism.
Panasonic changed their authentication system in May 2025, breaking the existing integration. The aioaquarea library has been updated to support this new auth flow, but the API has some breaking changes that this PR addresses.
Changes
manifest.json
• Updated dependency to use aioaquarea from git main branch (includes auth fix)
init.py
• Removed
include_long_id=Trueparameter fromget_devices()call (no longer supported)• Changed
device.nametodevice.device_name• Changed
device.versiontodevice.firmware_versionsensor.py
• Changed
device.nametodevice.device_name(3 occurrences)Related Issues
Fixes #139 (Aquarea Smart Cloud no more accessible via web - Integration isn't currently working)
Testing
• Tested login with Panasonic Comfort Cloud credentials
• Verified device discovery works
• Confirmed all sensors populate correctly (temperatures, consumption, etc.)
• Confirmed climate and water_heater entities work
Notes
Once aioaquarea publishes a new version to PyPI with the auth fix, the manifest.json should be updated to use a pinned version instead of the git reference.