fustom / ariston-remotethermo-home-assistant-v3

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

[BUG] async error #372

Open dsmagghe opened 1 week ago

dsmagghe commented 1 week ago

a couple of days ago since this error occured. Think it is a modification on the side of the Ariston api

2024-11-11 17:51:54.878 ERROR (MainThread) [custom_components.ariston] Traceback (most recent call last): File "/config/custom_components/ariston/init.py", line 91, in async_setup_entry await device.async_get_features() File "/usr/local/lib/python3.12/site-packages/ariston/velis_base_device.py", line 91, in async_get_features await super().async_get_features() File "/usr/local/lib/python3.12/site-packages/ariston/base_device.py", line 133, in async_get_features features = await self.api.async_get_features_for_device(self.gw)

iamnague commented 1 week ago

Somehting wrong from my side also, starting couple days ago. Moreover I'm not able to use the phone app when HA integration is enable after few minutes. To restore the phone app, need to turn off integration, and turn off my heater wifi for 30min.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, 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/velis_base_device.py", line 48, in async_update_state self.data = await self.api.async_get_velis_plant_data(self.plant_data, self.gw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 617, in async_get_velis_plant_data med_plant_data = 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')

Yann0128 commented 6 days ago

Bonjour, Je rencontre le même problème. Je n’ai plus eu d’accès aux infos ni sur HA ni sur l’appli Ariston. J’ai contacté le SAV d’Ariston et ils m’ont confirmé que c’était lié à l’utilisation d’un service tiers (cette intégration sur HA). J’ai désactivé l’intégration dans HA, patienté 30 minutes et j’avais à nouveau les donnés dans l’application Ariston. pourvu que cela puisse être corrigé 🤞

IMG_8498 IMG_8484

iamnague commented 6 days ago

So, this is a decision by ARISTON to block HA integration. Maybe we can try to adjust the polling interval ?

Manf-DB commented 6 days ago

I have the same problem. No connection with the app for the past week. I conctacted ariston assistence and they told me that from their side it's all ok. They "suggested" me not to use third part app. I have disabled yesterday this integration and now I can access via ariston app.

Yann0128 commented 4 days ago

So, this is a decision by ARISTON to block HA integration. Maybe we can try to adjust the polling interval ?

Did you try it ? Does it works ?

daouda40 commented 4 days ago

I noticed this problem, I had adjusted the polling some time ago. I only use the Ariston app on my phone on 4g, (not my residential IP), or else both the app and the integration are blocked for some time.

Screenshot_2024-11-15-10-34-35-231_io homeassistant companion android

iamnague commented 4 days ago

So, this is a decision by ARISTON to block HA integration. Maybe we can try to adjust the polling interval ?

Did you try it ? Does it works ?

Yes it works ! I set the zone scan interval to 1800s and no more issue. Obviously a lower value is possible. I'll try 360 like @daouda40.

Yann0128 commented 4 days ago

I’ll try it too. Thanks for the advice !

dsmagghe commented 11 hours ago

there support told me we shouldn't use homeassistant integration...because it was not supported by them. Isn't there a way to use google home instead and have google home integrate it into homeassistant? Because that is supported from ariston, and as I understand then they would not block it because it came from google ip addresses?