gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
135 stars 51 forks source link

hOn new installation fail #25

Closed 8eholder closed 1 year ago

8eholder commented 1 year ago

Hi,

I have tried to install the integration both via HACS and directly in custom_components in my current version of HA 2022.10.4. I have also deployed a new HA 2022.6.0 which is the one I have seen used in the development of the integration and also tested in both ways. In both cases the log gives me the same 3 errors:


Error while setting up hon platform for climate 10:13:42 – (ERROR) Climate (integración personalizada)

Logger: homeassistant.components.climate Source: custom_components/hon/climate.py:92 Integration: Climatización (documentation, issues) First occurred: 10:13:42 (1 occurrences) Last logged: 10:13:42

Error while setting up hon platform for climate Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/hon/climate.py", line 92, in async_setup_entry if appliance['applianceTypeId'] == 11: KeyError: 'applianceTypeId'


Error while setting up hon platform for sensor 10:13:42 – (ERROR) Sensor (integración personalizada)

Logger: homeassistant.components.sensor Source: custom_components/hon/sensor.py:73 Integration: Sensor (documentation, issues) First occurred: 10:13:42 (1 occurrences) Last logged: 10:13:42

Error while setting up hon platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/hon/sensor.py", line 73, in async_setup_entry if appliance["applianceTypeId"] == 1: KeyError: 'applianceTypeId'


Error setting up entry ivan.*.**@gmail.com for hon 10:13:41 – (ERROR) hOn (integración personalizada)

Logger: homeassistant.config_entries Source: custom_components/hon/init.py:55 Integration: hOn First occurred: 10:13:41 (1 occurrences) Last logged: 10:13:41

Error setting up entry ivan.*.**@gmail.com for hon Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/hon/init.py", line 55, in async_setup_entry if appliance['applianceTypeId'] not in [1, 2, 4, 6, 8, 9, 11]: KeyError: 'applianceTypeId'


Thanks for your work.

8eholder commented 1 year ago

Hello,

I have continued testing and found the error. In my hOn application I had added a virtual wine cellar that the app offered. I have deleted it and reconfigured the integration and the 6 air conditioning machines and their sensors have appeared.

Thanks for your work again.