fustom / ariston-remotethermo-home-assistant-v3

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

The new release of HA 2023.6 broke this integration #121

Closed Meister1977 closed 1 year ago

Meister1977 commented 1 year ago

Again, the integration is broken. To be honest, I cannot find anything in the logs specially for this integration. I have only a few red lines:

` 2023-06-08 10:00:35.407 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration ariston which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2023-06-08 10:00:35.411 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2023-06-08 10:00:35.414 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2023-06-08 10:01:37.054 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.

2023-06-08 10:01:37.071 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.

2023-06-08 10:01:37.075 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.

2023-06-08 10:01:40.438 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: gree, ariston, met, speedtestdotnet, slack, hacs, sonoff, rpi_power, zha, tts

2023-06-08 10:01:42.531 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:03:01.120 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:03:51.156 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:05:10.429 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:06:34.186 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:07:23.286 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:10:10.426 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:11:38.193 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:13:43.485 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:14:43.487 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:15:10.428 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:16:40.024 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:17:44.287 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:18:43.700 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:20:10.426 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:22:41.408 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:23:41.410 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:26:43.487 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:27:43.487 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:28:53.128 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:29:57.855 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:31:40.844 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:33:06.838 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:34:06.840 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:36:56.442 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:37:49.187 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:39:06.852 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:40:10.381 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:41:49.869 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:43:50.214 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:43:50.218 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:44:50.391 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:47:10.365 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:48:31.016 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:49:31.015 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:52:10.184 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:53:11.476 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:54:22.005 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:55:10.390 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:58:51.651 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 10:58:51.653 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:00:01.875 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:01:41.069 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:01:50.088 ERROR (SyncWorker_2) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:04:52.961 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:06:44.101 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:07:22.195 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:09:54.240 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:10:50.596 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

2023-06-08 11:12:56.439 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection `

image

dtalens commented 1 year ago

Same issue.

2023-06-08 12:00:31.260 DEBUG (MainThread) [ariston.ariston_api] Request method GET, path: https://www.ariston-net.remotethermo.com/api/v2/velis/PlantData.Se/XXXXXXXXXXXX, params: None
2023-06-08 12:00:31.569 DEBUG (MainThread) [custom_components.ariston.coordinator] Finished fetching ariston-XXXXX-coordinator data in 0.309 seconds (success: True)
2023-06-08 12:00:35.274 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2023-06-08 12:01:30.599 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/velis/PlantData.Se/XXXXXXXXXXXX/mode, params: None
2023-06-08 12:01:31.261 DEBUG (MainThread) [ariston.ariston_api] Request method GET, path: https://www.ariston-net.remotethermo.com/api/v2/velis/PlantData.Se/XXXXXXXXXXXX, params: None
2023-06-08 12:01:31.354 DEBUG (MainThread) [custom_components.ariston.coordinator] Finished fetching ariston-XXXXX-coordinator data in 0.093 seconds (success: True)
2023-06-08 12:01:32.165 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2023-06-08 12:01:32.804 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/velis/PlantData.Se/XXXXXXXXXXXX/switch, params: None
2023-06-08 12:01:34.033 DEBUG (MainThread) [ariston.ariston_api] Request method POST, path: https://www.ariston-net.remotethermo.com/api/v2/velis/PlantData.Se/XXXXXXXXXXXX/switch, params: None
fustom commented 1 year ago

Check v0.13.3

dtalens commented 1 year ago

It works again. Thanks!

Meister1977 commented 1 year ago

It works for me too. Thanks!

mikesjogren commented 1 year ago

After the update the integration load just fine and I get the correct info from Ariston, but I can not change the temperature. After setting a new manual target temperature the integration returns to the previously set temperature (from the app).

dtalens commented 1 year ago

After the update the integration load just fine and I get the correct info from Ariston, but I can not change the temperature. After setting a new manual target temperature the integration returns to the previously set temperature (from the app).

Same issue.

fustom commented 1 year ago

Confirmed. I will fix soon.

Oneshotblu commented 1 year ago

Hi Fustom, electricity and gas consumption of both heating and hot water became not available anymore. I updated to HA 2023.6 -> deleted the YAML rows as suggested by the system warnings and updated to 0.13.3 immagine

As you can see it was available earlieer this morning: immagine

Do you have any suggestion? Thank you

fustom commented 1 year ago

Fixed. https://github.com/fustom/ariston-remotethermo-home-assistant-v3/releases/tag/v0.13.4

dtalens commented 1 year ago

Hi @fustom, Sensor.ariston_domestic_hot_water_resistor_electricity_consumption not avaliable in 0.13.4 version. My boiler is a Lydos hybrid. Do you have any suggestion? Thank you

2023-06-10 00:53:44.512 DEBUG (MainThread) [ariston.ariston_api] Request method GET, path: https://www.ariston-net.remotethermo.com/api/v2/remote/reports/XXXXXXXXXXXX/consSequencesApi8?usages=DhwHeatingPumpElec%2CDhwResistorElec, params: None, 
bsjouke commented 1 year ago

Already upgraded the integration to 0.13.4. After installing HA 2023.6.1, the following entities are unavailable:

sensor.ariston_central_heating_electricity_consumption sensor.ariston_central_heating_gas_consumption sensor.ariston_domestic_hot_water_electricity_consumption sensor.ariston_domestic_hot_water_gas_consumption

Screenshot 2023-06-11 104008

EDIT: Also the choice for gas type (natural gas) and quantity (m3) have disappered

bsjouke commented 1 year ago

The missing entities mentioned above, and gas type and gas unit function properly in 0.13.4 with HA 2023.5.4, see below

image

Oneshotblu commented 1 year ago

The missing entities mentioned above, and gas type and gas unit function properly in 0.13.4 with HA 2023.5.4, see below

image

Same happening to me as you can read above.. broken since new HA update..

fustom commented 1 year ago

I don't understand why, but with python 3.11 flag's iter does not work as previous version. https://docs.python.org/3/library/enum.html#enum.Flag

$ python3.11

>>> import ariston
>>> list(ariston.device.ConsumptionType)
[<ConsumptionType.CENTRAL_HEATING_TOTAL_ENERGY: 1>, <ConsumptionType.DOMESTIC_HOT_WATER_TOTAL_ENERGY: 2>, <ConsumptionType.DOMESTIC_HOT_WATER_HEATING_PUMP_ELECTRICITY: 8>]

$ python3.10

>>> import ariston
>>> list(ariston.device.ConsumptionType)
[<ConsumptionType.CENTRAL_HEATING_TOTAL_ENERGY: 1>, <ConsumptionType.DOMESTIC_HOT_WATER_TOTAL_ENERGY: 2>, <ConsumptionType.CENTRAL_HEATING_GAS: 7>, <ConsumptionType.DOMESTIC_HOT_WATER_HEATING_PUMP_ELECTRICITY: 8>, <ConsumptionType.DOMESTIC_HOT_WATER_RESISTOR_ELECTRICITY: 9>, <ConsumptionType.DOMESTIC_HOT_WATER_GAS: 10>, <ConsumptionType.CENTRAL_HEATING_ELECTRICITY: 20>, <ConsumptionType.DOMESTIC_HOT_WATER_ELECTRICITY: 21>]
fustom commented 1 year ago

Ok. I see. The flag is a binary unique. 000001 = 1 000010 = 2 000100 = 4 001000 = 8 010000 = 16 100000 = 32 ... Anything else is alias. So I don't need flag, enum is enough. I will fix soon.

fustom commented 1 year ago

Fixed.

Oneshotblu commented 1 year ago

Thank you so much!!

bsjouke commented 1 year ago

I can confirm all is fixed. Thanks for the rapid response and solution!