fustom / ariston-remotethermo-home-assistant-v3

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

[BUG] Exception: 429 #338

Closed jhbugues closed 3 months ago

jhbugues commented 3 months ago

First of all : 👍 Thanks for your work, it's a great job that help every day.

Describe the bug

The integration works, then no. Exception: 429 It was ok during several monthes.

How could I fix that Exception 429 ?

Screenshots Capture d’écran 2024-05-05 à 14 37 39

Environment (please complete the following information):

Chafotteaux Mira C Green Link

Additional context, debug log 2024-05-04 00:28:36.472 ERROR (MainThread) [custom_components.ariston.coordinator] Unexpected error fetching ariston-Chaudette-coordinator data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 271, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/galevo_device.py", line 105, in async_update_state (self.data, self.menu_items) = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 634, in async_get_menu_items items = await self._async_get( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 924, 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 904, in async_request return await self.async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 907, in async_request raise Exception(response.status) Exception: 429

type-rke commented 3 months ago

Same problem, bu i think its ariston, app also not responding image

lakusz1github commented 3 months ago

the same for me

dwienie commented 3 months ago

Same problem, maybe a limitation of number of requests in a time slot?

alexisgoova commented 3 months ago

Same problem here. It goes offline and online the whole time.

Dreed1972 commented 3 months ago

Unfortunately, I also have the same issue, even when I extend the scanning times.

alexisgoova commented 3 months ago

I extended the times to 600sec, 60min and 1200sec. This seems to work. Dunno where the limit is.

dwienie commented 3 months ago

Yep I extended as well to 300 sec, 30 min and 600sec. That works too.

jhbugues commented 3 months ago

Thanks for your report, it's a realy good idea, Am I right if I modify the "const.py" file ? Lines 54, 55 and 56 ? I'm not used editing thoses files... thanks for your help.

vernazza commented 3 months ago

Thanks for your report, it's a realy good idea, Am I right if I modify the "const.py" file ? Lines 54, 55 and 56 ? I'm not used editing thoses files... thanks for your help.

You just have to use the "configure" button in the HA device interface. You'll also need to disable the integration, wait a few hours and enable it again.

Please, see #331 and #332 (I suggest you to close this bug and continue the discussion in the other ones)

jhbugues commented 3 months ago

Oh yeah, of course. It's so simple... I'll see in a few times if it's fixed or not. Thx very much.

jhbugues commented 3 months ago

As suggested by vernazza, I close this bug. Thx for all