JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
79 stars 22 forks source link

Electrolux Well A7 still not working #52

Closed hyrava closed 8 months ago

hyrava commented 1 year ago

I can't reopen older ticket because it is not mine so I created new.

My Electrolux worked great with this integration for months mut something happened (integration update? HA update?) and it stopped working.


I have same issue with Well A7. Sometimes integration gets some values from Well A7 but very randomly.

image

This error originated from a custom integration.

Logger: custom_components.wellbeing Source: helpers/update_coordinator.py:229 Integration: Electrolux Wellbeing (documentation, issues) First occurred: 12:18:43 (1 occurrences) Last logged: 12:18:43

Error fetching wellbeing data:

Originally posted by @hyrava in https://github.com/JohNan/homeassistant-wellbeing/issues/30#issuecomment-1594402634

hyrava commented 1 year ago

Updated to latest version 1.0.6 and it still does not show data. Debug log shows it got some data from API but it does not show in HA. It says at the end "success: False"

2023-07-13 15:38:50.403 DEBUG (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceId': '950011558112009335087076', 'applianceData': {'applianceName': 'Ilmanpuhdistin', 'created': '2022-06-01T18:48:29.6620925Z', 'modelName': 'WELLA7'}, 'properties': {'desired': {'MinRefreshInterval_s': 3, 'ReportExtraProperties': False, 'PM1_Hysteresis': 3, 'PM2_5_Hysteresis': 3, 'PM10_Hysteresis': 3, 'Temp_Hysteresis': 0, 'Humidity_Hysteresis': 3, 'ECO2_Hysteresis': 9, 'TVOC_Hysteresis': 9, 'LocationReq': True, 'TimeZoneStandardName': 'Europe/Helsinki', 'TimeZoneDaylightRule': ':GMT+2:GMT+3:0200:(1900)040103-0:110104-0', 'VmNo_NIU': 'VM185_A_01.29.00_ASPEN', 'VmNo_MCU': 'VM174_A_01.04.00', '$metadata': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91, 'MinRefreshInterval_s': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'ReportExtraProperties': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'PM1_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'PM2_5_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'PM10_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'Temp_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'Humidity_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'ECO2_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'TVOC_Hysteresis': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'LocationReq': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'TimeZoneStandardName': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'TimeZoneDaylightRule': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'VmNo_NIU': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}, 'VmNo_MCU': {'$lastUpdated': '2023-07-09T16:34:29.6704446Z', '$lastUpdatedVersion': 91}}, '$version': 91}, 'reported': {'FilterLife_1': 50, 'FilterType_1': 50, 'WorkMode': 'Auto', 'Fanspeed': 1, 'SafetyLock': True, 'Ionizer': True, 'PMSensState': True, 'FilterType_2': 192, 'FilterLife_2': 35, 'Model': 'A7', 'UILight': True, 'ErrImpellerStuck': 'not active', 'ErrPmNotResp': 'not active', 'ErrGasNotResp': 'not active', 'ErrTempRhNotResp': 'not active', 'ErrNfcTagNotPres_1': 'was active', 'ErrNfcTagNotPres_2': 'not active', 'ErrNfcTagPresNotValid_1': 'not active', 'ErrNfcTagPresNotValid_2': 'not active', 'ErrNfcTransceiver_1': 'not active', 'ErrNfcTransceiver_2': 'not active', 'InterfaceVer': 20210119, 'VmNo_NIU': 'VM185_A_01.29.00_ASPEN', 'VmNo_MCU': 'VM174_A_01.04.00', 'FrmVer_NIU': '1.29.0', 'Workmode': 'Auto', 'SchedulingState': 'not set', 'ErrCommSensorUIBrd': 'not active', 'logE': 3198, 'logW': 2013, 'capabilities': {'tasks': {}}, 'SignalStrength': 'FAIR', 'tasks': {}, '$metadata': {'$lastUpdated': '2023-07-13T12:37:46.512Z', 'FilterLife_1': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'FilterType_1': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'WorkMode': {'$lastUpdated': '2022-06-01T18:49:16.3744671Z'}, 'Fanspeed': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'SafetyLock': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'Ionizer': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'PMSensState': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'FilterType_2': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'FilterLife_2': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'Model': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'UILight': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrImpellerStuck': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrPmNotResp': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrGasNotResp': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrTempRhNotResp': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrNfcTagNotPres_1': {'$lastUpdated': '2023-07-13T12:34:00.755543Z'}, 'ErrNfcTagNotPres_2': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrNfcTagPresNotValid_1': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrNfcTagPresNotValid_2': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrNfcTransceiver_1': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrNfcTransceiver_2': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'InterfaceVer': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'VmNo_NIU': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'VmNo_MCU': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'FrmVer_NIU': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'Workmode': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'SchedulingState': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'ErrCommSensorUIBrd': {'$lastUpdated': '2023-07-11T10:50:51.4879749Z'}, 'logE': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'logW': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'capabilities': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z', 'tasks': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}}, 'SignalStrength': {'$lastUpdated': '2023-07-11T10:50:51.4098153Z'}, 'tasks': {'$lastUpdated': '2022-06-01T18:49:40.9156086Z'}, 'State': {'$lastUpdated': '2022-06-01T18:49:16.515Z'}, 'PM1': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'PM2_5': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'PM10': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'Temp': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'Humidity': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'ECO2': {'$lastUpdated': '2023-07-13T12:36:54.564Z'}, 'TVOC': {'$lastUpdated': '2023-07-13T12:37:46.512Z'}}, '$version': 55030, 'deviceId': '950011558112009335087076', 'State': 'Smart', 'PM1': 6, 'PM2_5': 6, 'PM10': 5, 'Temp': 20.6, 'Humidity': 52, 'ECO2': 409, 'TVOC': 70}, 'metadata': None}, 'status': 'enabled', 'connectionState': 'Connected'}] 2023-07-13 15:38:50.574 DEBUG (MainThread) [custom_components.wellbeing] Fetched data: {'manufacturingDateCode': '112', 'serialNumber': '11200933', 'pnc': '950011558', 'brand': 'ELECTROLUX', 'market': 'EUROPE', 'productArea': 'WELLBEING', 'deviceType': 'AIR_PURIFIER', 'project': 'ASPEN', 'model': 'A7', 'variant': 'CADR300', 'colour': 'DARKGREY'} 2023-07-13 15:38:50.574 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.507 seconds (success: False)

MickLesk commented 1 year ago

Is the problem still present?

hyrava commented 1 year ago

Yes it is. image

hyrava commented 1 year ago

Some hours ago I updated to newest version 1.0.8 and the problem is still present. After update I removed my Well A7 and added it back and that didn't help either. Now I found some new error messages from log:

2023-08-12 21:17:58.069 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.235 seconds (success: False) 2023-08-12 21:17:58.069 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/wellbeing/init.py", line 94, in _async_update_data appliances = await self.api.async_get_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/wellbeing/api.py", line 417, in async_get_data app.setup(data) File "/config/custom_components/wellbeing/api.py", line 244, in setup for entity in Appliance._create_entities(data) if entity.attr in data ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/wellbeing/api.py", line 126, in _create_entities name=f"{FILTER_TYPE[data.get('FilterType_1', 0)]} Life",


KeyError: 50
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wellbeing/__init__.py", line 99, in _async_update_data
raise UpdateFailed() from exception
homeassistant.helpers.update_coordinator.UpdateFailed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/wellbeing/__init__.py", line 123, in async_reload_entry
await async_setup_entry(hass, entry)
File "/config/custom_components/wellbeing/__init__.py", line 53, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady