fustom / ariston-remotethermo-home-assistant-v3

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

[BUG] Requests are blocked for xx seconds #362

Open smarthomedesign opened 5 days ago

smarthomedesign commented 5 days ago

First of all please check my wikipage: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/wiki and the previous issues (included the closed ones) before you create a new one.

Describe the bug I m getting blocked by api because of an error

Expected behavior

Screenshots This error originated from a custom integration. Logger: custom_components.ariston.coordinator Source: helpers/update_coordinator.py:312 integration: Ariston (documentation, issues) First occurred: September 23, 2024 at 3:37:24 PM (130 occurrences) Last logged: 12:11:37 AM

Unexpected error fetching ariston-WaterHeater-coordinator data Unexpected error fetching ariston-WaterHeater-bus_errors_coordinator data Unexpected error fetching ariston-WaterHeater-energy_coordinator data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, 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 637, in async_get_menu_items items = 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 66 seconds')

Environment (please complete the following information):

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

ZsBT commented 3 days ago

429, b'Requests are blocked for 66 seconds' - Ariston has blocked your IP address as they limit the request rate. Already discussed: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/issues/332