fustom / ariston-remotethermo-home-assistant-v3

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

Problem with update core 2024.2.1 #297

Open neoback45 opened 6 months ago

neoback45 commented 6 months ago

Hello, I have a problem with update 2024.2.1, the Ariston integration does not load. I came back to 2024.1.0 and everything works again... I am the only one? Thanks

neoback45 commented 6 months ago

Hy! i reload update with 2024.2.1 and it's good!

FlyProg commented 6 months ago

Hi, here with 2024.2.1 allways request the authentication and doesn't load

developerGM commented 5 months ago

The same problem with 2024.2.4 The error is "Translation Error: The intl string context variable "name" was not provided to the string "Authentication expired for {name}" and ask again to set email and password

developerGM commented 5 months ago

Any news? We cannot use this plugin in HA :(

fustom commented 5 months ago

It works for me. Need more info like debug log.

developerGM commented 5 months ago

Yes of course

`2024-02-29 16:16:26.827 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/accounts/login, params: None

2024-02-29 16:16:27.072 ERROR (MainThread) [custom_components.ariston] Failed to connect to Ariston with device: Casa

2024-02-29 16:16:27.073 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Caldaia' for ariston integration could not authenticate: None

2024-02-29 16:16:44.170 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/accounts/login, params: None

2024-02-29 16:16:44.503 DEBUG (MainThread) [ariston.ariston_api] Response {'token': 'EB93822BA1AA31A052040B70D84CXXXXX', 'act': {'FirstName': 'XX', 'LastName': 'XX', 'Email': 'XX', 'SecondaryEmail': 'XX', 'Role': 'FinalUser', 'Phone': 'XX', 'CountryCode': 'IT', 'AcceptTermsAndCondsOfGdpr': True, 'CountryBounds': {'country': 'IT', 'neLat': XX, 'neLng': XX, 'swLat': XX, 'swLng': XX, 'markerLat': XX, 'markerLng': XX}, 'AcceptCountrySpecificTermsAndConds': True}}

2024-02-29 16:16:44.506 DEBUG (MainThread) [ariston.ariston_api] Request method GET, path: https://www.ariston-net.remotethermo.com/api/v2/remote/plants, params: None

2024-02-29 16:16:44.508 DEBUG (MainThread) [ariston.ariston_api] Request method GET, path: https://www.ariston-net.remotethermo.com/api/v2/velis/plants, params: None

2024-02-29 16:16:44.822 DEBUG (MainThread) [ariston.ariston_api] Response []

2024-02-29 16:16:47.167 DEBUG (MainThread) [ariston.ariston_api] Response [{'zones': [{'num': 1, 'name': 'Corridoio', 'roomSens': True, 'geofenceDeroga': False, 'isHidden': False}], 'solar': False, 'convBoiler': False, 'hpmpSys': False, 'hybrSys': False, 'dhwProgSupported': False, 'virtualZones': False, 'hasVmc': False, 'hasExtTP': False, 'hasBoiler': True, 'pilotSupported': True, 'umsys': 0, 'isVmcR2': False, 'isEvo2': False, 'gw': 'XX', 'sn': 'XX', 'name': 'Casa', 'loc': {'country': 'IT', 'addr': 'XX', 'cityName': 'XX', 'city': XX, 'adm1Name': 'XX', 'adm1': XX, 'adm2Name': 'XX, 'adm2': XX, 'postalCode': 'XX', 'lat': XX, 'lng': XX, 'radius': 0.0}, 'sys': 3, 'utcOft': 60, 'lnk': 1, 'weatherProvider': 1, 'fwVer': '104.115.20Z', 'tcByGuest': False, 'consumptionsSettings': {'currency': 2, 'gasType': 0, 'gasEnergyUnit': 4}, 'geofenceConfig': {'lat': XX, 'lng': XX, 'radius': 100.0}, 'mqttApiVersion': 9, 'isOffline48H': False}]

2024-02-29 16:16:47.171 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/accounts/login, params: None

2024-02-29 16:16:47.412 ERROR (MainThread) [custom_components.ariston] Failed to connect to Ariston with device: Casa

2024-02-29 16:16:47.413 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Caldaia' for ariston integration could not authenticate: None`

fustom commented 5 months ago

Have you tried to delete the device and add it again? It seems your stored gw in HA is somehow different from what the API responded. Don't know why.

developerGM commented 5 months ago

Ok I will try to delete. If I delete lost all statistics data?

fustom commented 5 months ago

No. But stay safe, create a new backup first. https://www.home-assistant.io/common-tasks/os/#backups

developerGM commented 5 months ago

Yes it works. Deleted device and connected again it works

Scigik commented 4 months ago

Hi,

I seem to have the same issue since the HA core update 2024.4.1. The integration no longer detects the device or any of the entities. I tried to delete the intregration and reinstall it but it didn't work. Connecting directly to the Arison Net platform works however, so it's not an issue with the cloud API.

Does anyone have this issue? Any fix to recommend?

Thank you!

tmikoss commented 4 months ago

@Scigik it's something else, not HA version - I am also having this issue while running 2024.3.1. Showing 2024-04-05T14:10:56.760Z as latest update time.

LuisDiazUgena commented 4 months ago

I´m not able to log in. I have tried, as suggested here, to delete and reload the integration and it does not work for me.

After trying to log in with my account this is what i see:

image

In HA logs this is what is there:

This error originated from a custom integration.

Logger: custom_components.ariston.config_flow
Source: custom_components/ariston/config_flow.py:75
integration: Ariston (documentation, issues)
First occurred: 6 April 2024 at 09:26:24 (2 occurrences)
Last logged: 08:40:53

Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 493, in async_connect
    response = await self._async_post(
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 918, in _async_post
    return await self.__async_request("POST", path, None, body)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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: 403

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/ariston/config_flow.py", line 75, in async_step_user
    reponse = await ariston.async_connect(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ariston/__init__.py", line 49, in async_connect
    return await self.api.async_connect()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ariston/ariston_api.py", line 506, in async_connect
    raise ConnectionException() from error
ariston.ariston_api.ConnectionException

I´m on:

Core 2024.4.1 Supervisor 2024.03.1 Operating System 12.1 Frontend 20240404.1

lakusz1github commented 4 months ago

it looks like you are not update add-on for Ariston

LuisDiazUgena commented 4 months ago

it looks like you are not update add-on for Ariston

Thanks @lakusz1github Seems that I´m a bit sillier today that I expected. I redowloaded the project but didn´t reset HA :D now it works! Thanks.

Scigik commented 4 months ago

@lakusz1github Thank you. While I had updated HA Core, and tried to remore/reinstall the Ariston integration, it appears that an update of the Ariston integration was available. Installing it solved the issue.

LuisDiazUgena commented 4 months ago

last week I found that the integration was not working for me, either the oficial app.

IK have a power loss at my place and the router took a while to boot up. power cycling the boiler worked for me.