fustom / ariston-remotethermo-home-assistant-v3

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

Test Server #112

Closed AlexTischer closed 10 months ago

AlexTischer commented 1 year ago

Hello, I know this is not a common case, but my system is registered on a testing server (https://test.ariston-net.remotethermo.com/) that works exactly the same as the production one, but offers more info for people in R&D at Ariston. With the v2 version, I simply changed the url in the custom component (in ariston.py) and everything works. I wonder if there is anything like this that I can do with your v3 to achieve the same result... Thank you!

fustom commented 1 year ago

Hi @AlexTischer! This is the first time that I heard about this server. I don't know.

AlexTischer commented 1 year ago

Hi @AlexTischer! This is the first time that I heard about this server. I don't know.

Do you think there is any chance to change the target url? The server works exactly the same way...

Patbonamy commented 1 year ago

Hi @AlexTischer! This is the first time that I heard about this server. I don't know.

Do you think there is any chance to change the target url? The server works exactly the same way...

I can't add my device on this server, how do you do? It's return me an error.

AlessandroTischer commented 1 year ago

Hi @AlexTischer! This is the first time that I heard about this server. I don't know.

Do you think there is any chance to change the target url? The server works exactly the same way...

I can't add my device on this server, how do you do? It's return me an error.

You can't, it's something for internal use in Ariston

Patbonamy commented 1 year ago

Hi @AlexTischer! This is the first time that I heard about this server. I don't know.

Do you think there is any chance to change the target url? The server works exactly the same way...

I can't add my device on this server, how do you do? It's return me an error.

You can't, it's something for internal use in Ariston

OK, thanks.

fustom commented 1 year ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

AlexTischer commented 1 year ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

I think that would make the trick, but I don't understand where to look: I installed ariston-remotethermo-home-assistant-v3, where should I find that file of python-ariston-api?

fustom commented 1 year ago

In your python site package folder. For example: /usr/local/lib/python3.10/site-packages/ariston/ or ~/.local/lib/python3.10/site-packages/ariston/

fustom commented 1 year ago

Try to install the ariston module first:

pip3 install ariston
AlessandroTischer commented 1 year ago

Try to install the ariston module first:

pip3 install ariston

Yep, I made something wrong at the beginning. I reinstalled the integration and it automatically installed the python program and created that folder. It now works! Thank you!!

AlessandroTischer commented 1 year ago

Hi, I used this integration for quite some time now. I have two problems though:

  1. How can I make the edit of the cost.py file persistent? Every time I update the integration or HA, I have to edit it again.
  2. Most important I receive a 500 error, even though I have no custom firewall, the device is connected and I have no problem connecting with the app. I know I have a non standard situation, but I hope you could give me a help anyways. Some logs:

    `This error originated from a custom integration.

Logger: custom_components.ariston.coordinator Source: helpers/update_coordinator.py:290 Integration: Ariston (documentation, issues) First occurred: 09:00:46 (8 occurrences) Last logged: 09:12:09

Unexpected error fetching ariston-Luigi's-energy_coordinator data: 500 Unexpected error fetching ariston-Luigi's-energy_coordinator data: 599 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 246, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/galevo_device.py", line 972, in async_updateenergy (, self.consumptions_settings, self.energy_account) = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 524, in async_get_energy_account energy_account = await self._async_get( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 884, in _async_get return await self.async_request("GET", path, params, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 864, in async_request return await self.async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 867, in async_request raise Exception(response.status) Exception: 500 This error originated from a custom integration.

Logger: custom_components.ariston Source: custom_components/ariston/init.py:128 Integration: Ariston (documentation, issues) First occurred: 09:00:46 (8 occurrences) Last logged: 09:12:09

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 246, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/galevo_device.py", line 972, in async_updateenergy (, self.consumptions_settings, self.energy_account) = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 524, in async_get_energy_account energy_account = await self._async_get( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 884, in _async_get return await self.async_request("GET", path, params, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 864, in async_request return await self.async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ariston/ariston_api.py", line 867, in async_request raise Exception(response.status) Exception: 500

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

Traceback (most recent call last): File "/config/custom_components/ariston/init.py", line 128, in async_setup_entry await energy_coordinator.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 262, in async_config_entry_first_refresh raise ex homeassistant.exceptions.ConfigEntryNotReady: 500 `

neoback45 commented 11 months ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

I think that would make the trick, but I don't understand where to look: I installed ariston-remotethermo-home-assistant-v3, where should I find that file of python-ariston-api?

Hello! I have this integration and I work with test server. Just change the link adresse and it work!

AlessandroTischer commented 11 months ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

I think that would make the trick, but I don't understand where to look: I installed ariston-remotethermo-home-assistant-v3, where should I find that file of python-ariston-api?

Hello! I have this integration and I work with test server. Just change the link adresse and it work!

Yes I found out the problem was with the server itself.

neoback45 commented 10 months ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

I think that would make the trick, but I don't understand where to look: I installed ariston-remotethermo-home-assistant-v3, where should I find that file of python-ariston-api?

Hello! I have this integration and I work with test server. Just change the link adresse and it work!

Yes I found out the problem was with the server itself.

Hello! I have a problème with a value not update after 1 day. I restart home assistant and is work! You have a same problème? Thanks

neoback45 commented 10 months ago

Just a guess, but try to change your ARISTON_API_URL from "https://www.ariston-net.remotethermo.com/api/v2/" to "https://test.ariston-net.remotethermo.com/api/v2/" https://github.com/fustom/python-ariston-api/blob/c8099a853e91631e103f306c6ad5fcb008b32fed/ariston/const.py#L4

I think that would make the trick, but I don't understand where to look: I installed ariston-remotethermo-home-assistant-v3, where should I find that file of python-ariston-api?

Hello! I have this integration and I work with test server. Just change the link adresse and it work!

Yes I found out the problem was with the server itself.

Where you change this adress?

fustom commented 10 months ago

Now you can change the API URL on add device wizard: Kazam_screenshot_00032

AlessandroTischer commented 10 months ago

Now you can change the API URL on add device wizard: Kazam_screenshot_00032

Now I cannot login anymore with test server. Invalid authentication error is shown if the url is changed... Only changing it again from the const.py makes it work.

fustom commented 10 months ago

I found the issue. I'm going to fix this soon.

neoback45 commented 10 months ago

I found the issue. I'm going to fix this soon.

Good job! Thanks

neoback45 commented 9 months ago

Now you can change the API URL on add device wizard: Kazam_screenshot_00032

Now I cannot login anymore with test server. Invalid authentication error is shown if the url is changed... Only changing it again from the const.py makes it work.

Api ariston is down since friday 29? Not work with intégration or application ariston