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

Error while setting up ariston platform for #45

Closed
vlad36N opened this issue Oct 8, 2022 · 2 comments
Closed

Error while setting up ariston platform for #45

vlad36N opened this issue Oct 8, 2022 · 2 comments

Comments

@vlad36N
Copy link
Contributor

vlad36N commented Oct 8, 2022

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
Copy link
Owner

fustom commented Oct 28, 2022

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
Copy link
Owner

fustom commented Aug 25, 2023

I think I fixed the first issue. With: #149

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

@fustom fustom closed this as completed Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants