fustom / ariston-remotethermo-home-assistant-v3

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

Error while setting up ariston platform for #45

Closed vlad36N closed 1 year ago

vlad36N commented 2 years ago

After every HA restart have 3 error in log.

Have Ariston CLAS X 24 FF NG

First error: Logger: homeassistant.components.number Source: custom_components/ariston/number.py:27 Integration: Number (documentation, issues) First occurred: 05:37:53 (1 occurrences) Last logged: 05:37:53

Error while setting up ariston platform for number Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/ariston/number.py", line 27, in async_setup_entry if coordinator.device.are_device_features_available( AttributeError: 'dict' object has no attribute 'device'

Second error: Logger: homeassistant.components.select Source: custom_components/ariston/select.py:31 Integration: Select (documentation, issues) First occurred: 05:37:53 (1 occurrences) Last logged: 05:37:53

Error while setting up ariston platform for select Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/ariston/select.py", line 31, in async_setup_entry if coordinator.device.are_device_features_available( AttributeError: 'dict' object has no attribute 'device'

Logger: homeassistant.components.sensor Source: custom_components/ariston/sensor.py:34 Integration: Sensor (documentation, issues) First occurred: 05:37:53 (1 occurrences) Last logged: 05:37:53

Third error: Error while setting up ariston platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/ariston/sensor.py", line 34, in async_setup_entry if coordinator.device.are_device_features_available( AttributeError: 'dict' object has no attribute 'device'

I'm using Home Assistant 2022.10.1 Supervisor 2022.09.1 Operating System 9.0 Frontend 20221006.0 - latest

Logger settings:

default: error logs: custom_components.ariston: debug

Periodically have 500 error: Logger: custom_components.ariston.coordinator Source: custom_components/ariston/ariston.py:628 Integration: Ariston (documentation, issues) First occurred: 10:03:22 (1 occurrences) Last logged: 10:03:22

Unexpected error fetching ariston-Ariston-coordinator data: 500 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/ariston/coordinator.py", line 42, in _async_update_data await self.async_update_state() File "/config/custom_components/ariston/galevo_device.py", line 28, in async_update_state self.data = await self.api.async_get_properties( File "/config/custom_components/ariston/ariston.py", line 470, in async_get_properties return await self.post( File "/config/custom_components/ariston/ariston.py", line 639, in post return await self.__request("POST", path, None, body) File "/config/custom_components/ariston/ariston.py", line 628, in __request raise Exception(response.status) Exception: 500

fustom commented 1 year ago

Periodically have 500 error

Ariston cloud service sometimes does not work, just returns 500. So let's say it is normal behavior.

Error while setting up ariston platform for number Error while setting up ariston platform for select Error while setting up ariston platform for sensor

Unfortunately I don't know why it is happening. Try to upgrade to the latest version then remove the integration and add it again.

fustom commented 1 year ago

I think I fixed the first issue. With: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/pull/149

For the second check: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/wiki/Exception-500