fustom / ariston-remotethermo-home-assistant-v3

Ariston NET remotethermo integration for Home Assistant based on API
MIT License
144 stars 36 forks source link

Unknown error - Ariston Genus One+ Wifi 24 EU #344

Closed szepzoli closed 2 months ago

szepzoli commented 2 months ago

Hello Fustom,

First of all, thank you your great job.

Describe the bug First time, I managed to integrate my brand new Ariston Genus One+ Wifi 24 EU. All sensors, switches appeared as expected. Then suddenly all sensors got unknown.

Maybe it was not the best decision, but I deleted the entire integration, and started from scratch After that, if I try to login, I get an error message saying that an unknown issue has occurred.

ariston

Probably the authentication goes fine, because if I intentionally type a wrong pwd, I get a different error message.

Expected behavior I should be able to integrate my new device.

Screenshots I've just added above.

Environment (please complete the following information):

Additional context, debug log Add any other context about the problem here.

Thank you in advance.

szepzoli commented 2 months ago

Okay, checking the logs it seems my requests are blocked: File "/config/custom_components/ariston/config_flow.py", line 87, in async_step_user cloud_devices = await ariston.async_discover() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/init.py", line 56, in async_discover cloud_devices = await _async_discover(self.api) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/init.py", line 166, in _async_discover ] = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 522, in async_get_detailed_velis_devices detailed_velis_devices = await self._async_get( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 930, in _async_get return await self.async_request("GET", path, params, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 906, in async_request raise Exception(response.status, content) Exception: (429, b'Requests are blocked for 3 seconds')

szepzoli commented 2 months ago

Update 2:

It seems I should have opened a bug on Ariston side. Probably my user was banned for a while. This morning, I tried to connect again, and it worked perfectly.

As everything works now, I'm closing this issue.

Thank you very much for your great work.