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

[Bug]: keeps disconnecting #112

Open
vaibhavratnaparkhi opened this issue Jun 9, 2024 · 6 comments
Open

[Bug]: keeps disconnecting #112

vaibhavratnaparkhi opened this issue Jun 9, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@vaibhavratnaparkhi
Copy link

The problem

The integration keeps disconnecting and the sensors are disappearing.
Screenshot_2024-06-09-22-20-19-24_c3a231c25ed346e59462e84656a70e50

What version of Home Assistant Core are you running?

core-2024.6.0

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

040700

Device description

Yes

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?

No response

Additional information

No response

@vaibhavratnaparkhi vaibhavratnaparkhi added the bug Something isn't working label Jun 9, 2024
@lrodorigo
Copy link

lrodorigo commented Jun 10, 2024

Same Here. Reloading the integration does not solve the issue, neither temporarily.

  File "/usr/local/lib/python3.12/site-packages/aioaquarea/core.py", line 239, in request
    raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure 
it is connected to the network or check again 
after resetting adaptor.
2024-05-11 01:43:38.045 ERROR (MainThread) [custom_components.aquarea.coordinator] Unexpected error fetching [email protected] data: API error: 1000-1503 - Failed communication with adaptor. Please make sure 
it is connected to the network or check again 
after resetting adaptor.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/aquarea/coordinator.py", line 67, in _async_update_data

@cjaliaga
Copy link
Owner

TL;DR: Restart the adapter/device.

That error comes directly from the Aquarea service and it means that the Aquarea cloud is not able to connect to the adapter. I'm glad that their errors come with the specific information and the instructions to follow.

The integration works on a device direct mode, which means it asks the Aquarea Service to connect to the adapter and load the latest data directly from the device instead of relying on the data cached in the service (which can be outdated, by minutes or even worse).

In the past I've thought on trying to use the cached data if for whatever reason the integration fails to refresh the data with direct mode, but honestly I've decided to rather show the error as it's better to fix the situation than hide it until data that might be highly outdated.

@mmmmm009
Copy link

I keep getting the same error:

Unexpected error fetching [email protected] data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/coordinator.py", line 67, in _async_update_data await self.device.refresh_data() File "/usr/local/lib/python3.13/site-packages/aioaquarea/core.py", line 949, in refresh_data self._status = await self._client.get_device_status(self._info.long_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aioaquarea/core.py", line 71, in _wrap response = await fn(client, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aioaquarea/core.py", line 509, in get_device_status response = await self.request( ^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/local/lib/python3.13/site-packages/aioaquarea/core.py", line 239, in request raise ApiError(error.error_code, error.error_message) aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor.

It happens very often:

szron

so, there's nothing that can be done about it?
THX.

@cjaliaga
Copy link
Owner

Hey @mmmmm009 , the recommendation would be to restart the adapter and to ensure the Wi-Fi signal (in case is connected over Wi-Fi instead of Ethernet) is stable and has good coverage where the adapter is located.

@mmmmm009
Copy link

ok, thx, will try.
So normally it shouldn't disconnect at all?

@mmmmm009
Copy link

Hi,

I've changed location of heat pump Wifi module. Now it's in line of sight with Wifi router.
Connection is more stable but still integration disapears quite often.
So maybe the problem is somewhere else?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants