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] Unavailable entities and failed integration reload #331

Closed
dfranceschelli opened this issue Apr 30, 2024 · 40 comments
Closed

[BUG] Unavailable entities and failed integration reload #331

dfranceschelli opened this issue Apr 30, 2024 · 40 comments
Assignees
Labels
bug Something isn't working

Comments

@dfranceschelli
Copy link

All the entities created by the integration are unavailable. I'm not able to reload the integration, due to errors.

Home Assistant 2024.4.4
Ariston NET 0.19.1
My Ariston device is a Velis Evo2, model 22

Please refer to the following logs reporting the error.

This error originated from a custom integration.

Logger: custom_components.ariston
Source: custom_components/ariston/init.py:91
integration: Ariston (documentation, issues)
First occurred: 12:08:08 (1 occurrences)
Last logged: 12:08:08

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)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 539, in async_get_features_for_device
return 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

@dfranceschelli dfranceschelli added the bug Something isn't working label Apr 30, 2024
@romanovdavid
Copy link

It looks like Ariston started banning people due to too frequent calls to their service through the API.

@pchaves1
Copy link

Can't use the android APP either

@fustom
Copy link
Owner

fustom commented Apr 30, 2024

Yeah it looks like Ariston tries to save some money by reduce the server load.

Hey Ariston! What about to optimize your server code? 2 requests / minutes / user are not that much.

Response header: 429 Too Many Requests
Response body: Requests are blocked for x seconds

The problem is that after x seconds the next request is still 429 and blocked for another y seconds. I can increase the default polling time, but not sure what should be the correct number.

@pchaves1
Copy link

There is no way to avoid cloud service?

@fustom
Copy link
Owner

fustom commented Apr 30, 2024

#272 (comment)

@camui-alexandru
Copy link

camui-alexandru commented Apr 30, 2024

Same problem here.

@fustom
Copy link
Owner

fustom commented Apr 30, 2024

Try to increase the polling time (scan interval):
Kazam_screenshot_00038

I don't know what should be the correct values.

@dfranceschelli
Copy link
Author

I understand, not depending from a bug in your code... I'm closing the issue, thanks anyway!
I will try to increase the polling time as suggested.

@Patbonamy
Copy link

What

I understand, not depending from a bug in your code... I'm closing the issue, thanks anyway! I will try to increase the polling time as suggested.

Hi, what are the correct values, I cannot retrieve the integration.

@dtalens
Copy link
Contributor

dtalens commented Apr 30, 2024

We have to send mass emails to ariston asking them to allow us access to our appliances. It's a shame!
Info Connectivity Info.Connectivity@ariston.com

@Patbonamy
Copy link

We have to send mass emails to ariston asking them to allow us access to our appliances. It's a shame! Info Connectivity Info.Connectivity@ariston.com

I send one email.

@DejanBukovec
Copy link

I think that this is standard periodic server problems... But maybe they enable some protection which are set to restrictive...

I would also like to have local control instead of Cloud one which do not work for once per month...

I think that my VELIS Evo2 have ESP inside. So there is option to make custom firmware for example with ESPHome or PlatformIO(And send data by MQTT to HA)... But this will be specific device solution…

Another option will be create some addon for HA which will be HTTP server and transform request into HA integration. On router then you modify DNS request for "https://broker-ari.everyware-cloud.com" that show to your HA addon... Something like proxy...

@fustom
Copy link
Owner

fustom commented May 1, 2024

My device works well with the following settings, but I keep testing.
Kazam_screenshot_00039

@Patbonamy
Copy link

My device works well with the following settings, but I keep testing.
Kazam_screenshot_00039

For me 300, 60 and 600
Still have error 429

@dtalens
Copy link
Contributor

dtalens commented May 1, 2024

My device works well with the following settings, but I keep testing.
Kazam_screenshot_00039

For me 300, 60 and 600 Still have error 429

Try disabling the integration for a few hours and try again. It worked for me.

@dxdx65
Copy link

dxdx65 commented May 1, 2024

My device works well with the following settings, but I keep testing.
For me 300, 60 and 600 Still have error 429

Try disabling the integration for a few hours and try again. It worked for me.

Yes, I confirm also from my side, using the "extended" parameters, disabling the addon for a couple of hours (so that no access is done to the Ariston server) and then enabling again, it started to work well.
Lets' cross fingers and thenks for the support to all.

@Patbonamy
Copy link

My device works well with the following settings, but I keep testing.
Kazam_screenshot_00039

For me 300, 60 and 600 Still have error 429

Try disabling the integration for a few hours and try again. It worked for me.

Disabled all the night still have 429 errors, entities unavailable for 55'.
I wait for a response from Ariston.

@salvadorbs
Copy link

Can we keep this issue open or turn it into a discussion, in order to allow everyone to better follow this problem?

@vantech14
Copy link

The issue is definitely the integration as the Ariston App works fine if the integration is disabled.

Perhaps the API has changed?

@Patbonamy
Copy link

The issue is definitely the integration as the Ariston App works fine if the integration is disabled.

Perhaps the API has changed?

No,. for me the App wont work fine, it's connected but no action possible.

@Patbonamy
Copy link

The issue is definitely the integration as the Ariston App works fine if the integration is disabled.
Perhaps the API has changed?

No,. for me the App wont work fine, it's connected but no action possible.

With the Google Home App, you can control only the thermostat with Chaffolink or Aristonlink, it's work even the Ariston App is down.
Perhaps this can help.

@Antonio-di-Houten
Copy link

Antonio-di-Houten commented May 3, 2024

I have a "ATAG One Zone" thermostat ( Remote Gw Thermo-2CF9DA ) with the same problems as above (all entities not available) due to the Ariston side. There is official support from ATAG (Ariston) for Google Home & Apple Homekit on this thermostat.

The Home Assistant "own" Homekit does work local (so no need to use Apple Home Kit) but is limited to 4 entities (the thermostat on/off, temperature-requested, temperature-currently, thermo-id). So: I still can turn-off the heating with Home Assistant in bed.
Will try the conguration adaption of the integration in HA.

18 Ariston 01
19 Ariston 02

@Antonio-di-Houten
Copy link

Antonio-di-Houten commented May 4, 2024

I have a "ATAG One Zone" thermostat ( Remote Gw Thermo-2CF9DA ) with the same problems as above (all entities not available) due to the Ariston side. There is official support from ATAG (Ariston) for Google Home & Apple Homekit on this thermostat.

The Home Assistant "own" Homekit does work local (so no need to use Apple Home Kit) but is limited to 4 entities (the thermostat on/off, temperature-requested, temperature-currently, thermo-id). So: I still can turn-off the heating with Home Assistant in bed. Will try the conguration adaption of the integration in HA.

12 hours ago, I set the configuration of the Ariston Integration on "300, 60, 600" and then disabled the integration.

No communication with the Cloud for 12 hours:

  • The Home Assistant "Homekit" ACTIVE for the ATAG thermostat ( is local ! ) AND
  • Disabled Ariston Home Assistant integration AND
  • NO ATAG zone app's on smartphones used AND
  • NO thermostat used/changed AND
  • NO hot water/Heating used

After these 12 hours I ENABLED the integration and it WORKS again.

@Patbonamy
Copy link

12 hours ago, I set the configuration of the Ariston Integration on "300, 60, 600" and then disabled the integration.

No communication with the Cloud for 12 hours:

  • The Home Assistant "Homekit" ACTIVE for the ATAG thermostat ( is local ! ) AND
  • Disabled Ariston Home Assistant integration AND
  • NO ATAG zone app's on smartphones used AND
  • NO thermostat used/changed AND
  • NO hot water/Heating used

After these 12 hours I ENABLED the integration and it WORKS again.

Hi do something like you do, and after 3 or 4 hours I have again 429 error.
I deactivated the integration for one our it's works again, for how long? Wait and see.

@Antonio-di-Houten
Copy link

Antonio-di-Houten commented May 4, 2024

12 hours ago, I set the configuration of the Ariston Integration on "300, 60, 600" and then disabled the integration.
No communication with the Cloud for 12 hours:

  • The Home Assistant "Homekit" ACTIVE for the ATAG thermostat ( is local ! ) AND
  • Disabled Ariston Home Assistant integration AND
  • NO ATAG zone app's on smartphones used AND
  • NO thermostat used/changed AND
  • NO hot water/Heating used

After these 12 hours I ENABLED the integration and it WORKS again.

Hi do something like you do, and after 3 or 4 hours I have again 429 error. I deactivated the integration for one our it's works again, for how long? Wait and see.

Same issue here after 5 and a half hours the HACS integration fails again with 429 (with config 300, 60, 600).
A direct RELOAD or "DISABLE & ENABLE" under HA does NOT work, it fails (again) with 429 error.
So I will wait some time and will try again in the late evening (after 4-6 hours).
The official App of ATAG called ATAG Zone (uses the Cloud) for my ATAG One Zone Thermostat STOPPED working too.
The access via the Browser to the Cloud STILL works fine and the HA "own" Homekit too.

Seems there is a limit per a certain time unit on the requests to the Ariston Cloud for the official App and the HACS integration.

@LuisDiazUgena
Copy link
Contributor

I needed to uninstall the mobile App and configure the addon like this:

image

It's been working ok for two days now.

@Patbonamy
Copy link

Works with 400,60,800.
No errors since 48 h. Only one for energy data but no entities unavailable.
I have a response from Ariston
"Dear user,

regarding your request we inform you that Ariston does not support the Home Assistant service.
From the checks carried out we did not detect any malfunctions on our systems.
We remind you that the use of the applications outside of the functions reported in the signed terms and conditions is not permitted because it may compromise the quality of our official services.

We remain available for any support or clarification you need.

Ariston NET Support Team"

@lakusz1github
Copy link

Maybe it is time for build our own firmware for Ariston ? ;)

@LuisDiazUgena
Copy link
Contributor

Maybe it is time for build our own firmware for Ariston ? ;)

A local integration will be great indeed

@EvanRens
Copy link

Works with 400,60,800. No errors since 48 h. Only one for energy data but no entities unavailable. I have a response from Ariston "Dear user,

regarding your request we inform you that Ariston does not support the Home Assistant service. From the checks carried out we did not detect any malfunctions on our systems. We remind you that the use of the applications outside of the functions reported in the signed terms and conditions is not permitted because it may compromise the quality of our official services.

We remain available for any support or clarification you need.

Ariston NET Support Team"

The statement on ' use of the applications outside of the functions reported in the signed terms and conditions is not permitted because it may compromise the quality of our official services.' is absolutely rediculous. First of all, nobody signed the terms & conditions. At most you agreed with them when signing up with your account. But the T&C's do not prohibit the use of third party apps. In fact, the T&C's state:

Any decision regarding the use of third-party products/services shall be entirely borne by the User, who may decide at any time to enable and disable the product, thereby accepting any and all responsibility.

Before connecting the Software to one or more third-party products/services, the User agrees to carry out any procedure that the Company may request; otherwise, it will not be possible to use the third-party product/service.

This means blocking API calls if they originate from any other device then the ATAG/Ariston thermostats, or not providing the aforementioned procedure violates your rights as a consumer to use the product you have bought.

I'm kindly asking ATAG for the aforementioned procedure, or the settings for which the API will continue to allow access. Will keepo you all posted.

@oywino
Copy link

oywino commented May 19, 2024

I also have problems with the official Ariston Net Android App.
Is anyone else also using this App?
I have contacted Ariston and all they say is; Disconnect, reset and set everything up to WiFi again from scratch, both for the boiler as well as for the App.
I have done so, but to no avail.
It all worked well, both App and HA up until 2 weeks ago. Then the trouble began and it has gotten worse and worse,
Now, I can connect successfully sometimes (2 out of 10 times), but if I try to send a command, it fails, both from the App as well as from HA. So even though HA apparently reports successful connection with all entities available, in reality it doesn't work.
As soon as I try to send a command, it disconnects again.

@EvanRens
Copy link

So far, by setting the following parameters in the HA integration:
Zone Scan: 400 seconds
Energy Scan: 60 minutes
Bus Errors: 800 seconds
I have not had HA Integration disconnects nor Android App disconnects (i.e. so no 429 responses).
It seems these settings do not overflow the Ariston rate limiting.

@Patbonamy
Copy link

I also have problems with the official Ariston Net Android App. Is anyone else also using this App? I have contacted Ariston and all they say is; Disconnect, reset and set everything up to WiFi again from scratch, both for the boiler as well as for the App. I have done so, but to no avail. It all worked well, both App and HA up until 2 weeks ago. Then the trouble began and it has gotten worse and worse, Now, I can connect successfully sometimes (2 out of 10 times), but if I try to send a command, it fails, both from the App as well as from HA. So even though HA apparently reports successful connection with all entities available, in reality it doesn't work. As soon as I try to send a command, it disconnects again.

Hi, before apply the new settings 400,60,800 you must deactivate Ariston integration for 2 hours and don't use the Android app.
After you can reactivate the Ariston integration.
During these 2 hours you can use the remote on the web https://www.ariston-net.remotethermo.com/R2/Account/Login?ReturnUrl=%2FR2%2FHome

@oywino
Copy link

oywino commented May 19, 2024

I followed your advice, and now - finally - it seems stable again.
Thank you so very much!
Also, many thanks for the link. I've been looking for that for a long time 👍

@Flipje1955
Copy link

First of all, thank you very much for apparently resolving the situation; I followed up your advice and the data is visible again.

Got here when trying here to understand why the HA / Ariston integration was not updating anymore. Forgive my current limited understanding of the technicalalities of the integration when asking: will Ariston continue to provide the data HA needs when we ("consumers") stick to the setting given above (400,60,800) or are we still in some "danger zone" that Ariston might still decide to block the HA integration to Ariston's data ?

Context: I am building wide scope heating system for which I absolutely must have access to the data the integration currently provides; should there be a serious chance of data being cut-off, I need to revise my strategy. Thank you !

@oywino
Copy link

oywino commented May 20, 2024

When building automations based on custom integrations which for the most part are reverse engineering, and in addition relies on a cloud based API operated by a company that doesn't promise anything, there is of course a significant risk involved that hick-ups and unavailability, bans and down-periods might and probably will occur now and then. That's the name of the game.

@Flipje1955
Copy link

thank you for your observations; spent a career of almost 40 years in ICT integration work, so I am familiar with the game and the risks. Based on that experience, noting that suppliers indeed may change interfaces, may declare systems or features end_of_life, typically suppliers communicate (timely) their intentions. So, I guess what I try to "read" is Ariston's position one that access to data is "tolerated" (until further notice) or "supported". I understand that that is utlimately my own call to make (appreciate all the work done to create / maintain this integration !). Thx again.

@Antonio-di-Houten
Copy link

Antonio-di-Houten commented May 20, 2024

First of all, thank you very much for apparently resolving the situation; I followed up your advice and the data is visible again.

Got here when trying here to understand why the HA / Ariston integration was not updating anymore. Forgive my current limited understanding of the technicalalities of the integration when asking: will Ariston continue to provide the data HA needs when we ("consumers") stick to the setting given above (400,60,800) or are we still in some "danger zone" that Ariston might still decide to block the HA integration to Ariston's data ?

Context: I am building wide scope heating system for which I absolutely must have access to the data the integration currently provides; should there be a serious chance of data being cut-off, I need to revise my strategy. Thank you !

First I agree with @oywino
I do not know what Device (e.g. waterheater) you ( @Flipje1955 ) have that depends on data of HA/HACS-Ariston-Cloud-integration and what device you have that sends the data to the Ariston-Cloud.
I have a ATAG-I28EC-zone (Central waterheater) with the "smart" ATAG-One-Zone Thermostat . This last one send the data to the ATAG/ARISTON-Cloud. So I depend also on the ATAG-One-Zone Thermostat. The ATAG-I28EC-zone has a connecting for OpenTherm protocol communication and therefore I am looking to a device that I can connect to the ATAG-I28EC-zone in parallel with the ATAG-One-Zone. E.g. OTGW (openthermgateway) from Schelte Bron in NL.

@Flipje1955
Copy link

Hi ! My installation consist of an ATAG i36EC Zone Central Water Heater, an ATAG One Zone Thermostat and a ATAG M Hybrid 7 Heatpump.
The extension I am building is a way to shift from a centrally controlled (the thermostat) floorheating (living area) / radiators (bathroom, bedrooms) to a way to control these areas individually. This means I must be able to instruct the heater / heatpump to generate heat if any area asks for a rise in temperature. A microcontroller (using microPython) controls individual groups of the floorheating and through Shelly devices on the radiator. Have added extra, dedicated temperature sensors and some made available though other domotica solutions (like: Philips HUE motion detectors also have a temp sensor build in) so I can now read the temperature in all rooms / areas. I use HA MQTT to exchange data.

I have so far not looked alternative ways to access / control the ATAQ devices, pleased as I was with the Ariston Integration which allowed me to focus on developing my extension. Would be interested to follow your quest with OTGW, though !
Thank you.

@Antonio-di-Houten
Copy link

Antonio-di-Houten commented May 21, 2024

Sorry @Flipje1955: It would be off topic to discus the OTGW solution further more here on Github.
So this is the last post concerning OTGW up here from me.
There is a Dutch site with forum info "Tweakers OTGW"
https://gathering.tweakers.net/forum/list_messages/1653967/0
Start reading for ATAG I28EC(zone) en I36EC(zone) from post:
https://gathering.tweakers.net/forum/list_message/62754954#62754954
The popular OTGW is (with more links for info):
https://www.nodo-shop.nl/nl/aanbevolen/211-opentherm-gateway.html
On Home Asistant OTGW:
https://www.home-assistant.io/integrations/opentherm_gw/

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