JohNan / homeassistant-wellbeing

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

Integration fails after login #10

Closed labaland closed 3 years ago

labaland commented 3 years ago

image

"ogger: custom_components.wellbeing Source: custom_components/wellbeing/api.py:410 Integration: Wellbeing (documentation, issues) First occurred: 0:15:32 (1 occurrences) Last logged: 0:15:32

Error fetching information from https://electrolux-wellbeing-client.vercel.app/api/mu52m5PR9X - Cannot connect to host electrolux-wellbeing-client.vercel.app:443 ssl:default [Connect call failed ('76.76.21.21', 443)]"

labaland commented 3 years ago

using nabu casa

JohNan commented 3 years ago

Sounds like a network problem. Are you able to browse to that url on the host?

Is it hosted by nabu casa?

labaland commented 3 years ago

Logger: custom_components.wellbeing Source: custom_components/wellbeing/init.py:81 Integration: Wellbeing (documentation, issues) First occurred: 14:04:26 (1 occurrences) Last logged: 14:04:26

Could not log in to WellBeing, argument of type 'NoneType' is not iterable

labaland commented 3 years ago

Yes on my pc i can browse to 76.76.21.21 & 76.76.21.21:443 (but with warning first)

i use nabu casa on HA, running docker on synology nas

labaland commented 3 years ago

This error originated from a custom integration.

Logger: custom_components.wellbeing Source: custom_components/wellbeing/api.py:397 Integration: Wellbeing (documentation, issues) First occurred: 14:04:26 (1 occurrences) Last logged: 14:04:26

Timeout error fetching information from https://electrolux-wellbeing-client.vercel.app/api/***

JohNan commented 3 years ago

It sounds like a network issue. Do you use some kind of proxy or ad blocking?

What version of the integration are you using? A refresh token issue was solved in the last update.

labaland commented 3 years ago

It sounds like a network issue. Do you use some kind of proxy or ad blocking?

What version of the integration are you using? A refresh token issue was solved in the last update.

Nope i do not. It was working before latest update. I tried to add the integration again but same error. Latest from hacs

JohNan commented 3 years ago

I also get the timeout form time to time. My thought is that we query the API too often. I gave added an option to set the update interval in the next release. Try increase it to see if it helps.

labaland commented 3 years ago

I reinstalled it again, and i get this message instantly:

Logger: homeassistant.config_entries
Source: config_entries.py:300
First occurred: 0:16:45 (1 occurrences)
Last logged: 0:16:45

Config entry 'l*******@gmail.com' for wellbeing integration not ready yet; Retrying in background

changed update interval to 120 and restart and still same

labaland commented 3 years ago

Tried without Nabu Casa and same error. Pure A9. Any suggestions?

I also get the timeout form time to time. My thought is that we query the API too often. I gave added an option to set the update interval in the next release. Try increase it to see if it helps.

Har testat utan nabu casa, lika meddelande. Testat byta dns på routern. Har du Pure A9 med? Det funkade vid första release för mig.

JohNan commented 3 years ago

Jag har en Pure A9 också och den uppdaterar utan problem för mig. Jag har faktiskt ingen aning om vad som ska vara fel. Inget gällande urler för APIet har ändrats sedan första releasen.

Klapperman commented 3 years ago

Hi, I have the same issue ever since upgrading to 0.0.5. I do not use Nabu Casa and use 1.1.1.1 as DNS provider for Home Assistant. The URL is reachable both from the home LAN and directly from Home Assistant device itself (through wget on the CLI).

When I reverted back to version 0.0.1 through HACS it all instantly works again (without removing and then installing the integration in Home Assistant itself). But as soon as I upgrade the 0.0.2 or higher (tried them all) i get: 2021-05-29 08:58:38 WARNING (MainThread) [homeassistant.config_entries] Config entry 'klXXXXXX@gmail.com' for wellbeing integration not ready yet; Retrying in background

Something introduced in version 0.0.2 and onwards seems to have broken the integration. One difference I need to mention is that my device is formally a AEG (but it's just a rebranded Electrolux) seems unlikely to be relevant, but still feels prudent to mention.

JohNan commented 3 years ago

@Klapperman can you get me a complete debug log from both working and not working version?

Enable debug logs by setting this in configuration.yaml

logger:
  logs:
    custom_components.wellbeing: debug
Klapperman commented 3 years ago

@JohNan The requested logs:

Version 0.0.1

2021-05-29 11:03:15 INFO (MainThread) [custom_components.wellbeing] 2021-05-29 11:03:22 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:03:22 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:03:22 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:03:22 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.401 seconds 2021-05-29 11:03:54 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:03:54 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:03:54 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:03:54 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 2.183 seconds 2021-05-29 11:04:24 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:04:24 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:04:24 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:04:24 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.516 seconds 2021-05-29 11:04:54 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:04:54 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:04:54 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:04:54 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.564 seconds 2021-05-29 11:05:24 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:05:24 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:05:24 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:05:24 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.720 seconds

Version 0.0.5

2021-05-29 11:15:11 DEBUG (MainThread) [custom_components.wellbeing] Current token is not set or expired 2021-05-29 11:15:19 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:15:19 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:15:19 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:15:19 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.308 seconds 2021-05-29 11:15:47 DEBUG (MainThread) [custom_components.wellbeing] Current token is not set or expired 2021-05-29 11:15:49 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'id': 727956, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Amsterdam', 'pncId': '950011391048004555087076', 'domainId': 486910}] 2021-05-29 11:15:49 INFO (MainThread) [custom_components.wellbeing] Fetched data: {'pnc': '950011391', 'manufacturingDateCode': '048', 'serialNumber': '04800455', 'brand': 'AEG', 'device': 'AIR_PURIFIER', 'model': 'AX9', 'variant': 'CADR600', 'colour': 'DARKGREY', 'market': 'EUROPE'} 2021-05-29 11:15:49 INFO (MainThread) [custom_components.wellbeing] The Boom Tube: {'pncId': '950011391048004555087076', 'applianceData': {'applianceName': 'The Boom Tube', 'created': '2021-04-16T10:25:44.0189843Z', 'modelName': 'PUREA9', 'pncId': '950011391048004555087076'}, 'twin': {'deviceId': '950011391048004555087076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Amsterdam', 'LocationReq': True, '$metadata': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4, 'TimeZoneStandardName': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}, 'LocationReq': {'$lastUpdated': '2021-04-20T13:41:27.9857906Z', '$lastUpdatedVersion': 4}}, '$version': 4}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Auto', 'FilterRFID': '1D4EE57D580000', 'FilterLife': 86, 'Fanspeed': 2, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 99, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'WEAK', '$metadata': {'$lastUpdated': '2021-05-29T08:53:58.456Z', 'FrmVer_NIU': {'$lastUpdated': '2021-04-16T10:25:47.3422012Z'}, 'Workmode': {'$lastUpdated': '2021-05-29T05:01:46.9544141Z'}, 'FilterRFID': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T03:42:41.270112Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-29T05:02:02.0275535Z'}, 'UILight': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SafetyLock': {'$lastUpdated': '2021-04-29T19:27:11.1425054Z'}, 'Ionizer': {'$lastUpdated': '2021-04-22T06:23:14.3001745Z'}, 'FilterType': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTVOC': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'DoorOpen': {'$lastUpdated': '2021-04-22T08:58:18.9854742Z'}, 'ErrRFID': {'$lastUpdated': '2021-04-16T10:25:47.4572029Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-29T04:45:21.5243154Z'}, 'PM1': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM2_5': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'PM10': {'$lastUpdated': '2021-05-29T05:01:47.084Z'}, 'Temp': {'$lastUpdated': '2021-05-29T06:23:28.214Z'}, 'Humidity': {'$lastUpdated': '2021-05-29T08:35:52.8Z'}, 'RSSI': {'$lastUpdated': '2021-05-29T04:45:21.5Z'}, 'CO2': {'$lastUpdated': '2021-05-29T08:50:58.724Z'}, 'TVOC': {'$lastUpdated': '2021-05-29T08:53:58.456Z'}}, '$version': 426, 'deviceId': '950011391048004555087076', 'PM1': 0, 'PM2_5': 0, 'PM10': 0, 'Temp': 23, 'Humidity': 50, 'RSSI': -77, 'CO2': 611, 'TVOC': 32}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None} 2021-05-29 11:15:49 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 0.258 seconds

Klapperman commented 3 years ago

@JohNan other difference I find in the log concerning the addon is the warning message below. This only shows up in the log when updated to 0.0.2 or higher (in this case it was version 0.0.5).

2021-05-29 11:15:19 WARNING (MainThread) [homeassistant.config_entries] Config entry 'klXXXXX@gmail.com' for wellbeing integration not ready yet; Retrying in background 2021-05-29 11:15:49 DEBUG (MainThread) [homeassistant.config_entries] Config entry 'klXXXXX@gmail.com' for wellbeing integration not ready yet; Retrying in 10 seconds

Another result is evidenced in the event bus log (example CO2 sensor):

0.0.1 2021-05-29 11:03:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.wellbeing_co2, old_state=None, new_state=<state sensor.wellbeing_co2=611; id=950011391048004555087076, integration=wellbeing, unit_of_measurement=ppm, friendly_name=CO2, device_class=carbon_dioxide @ 2021-05-29T11:03:22.834259+02:00>>

0.0.5 2021-05-29 11:15:47 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.wellbeing_co2, old_state=None, new_state=<state sensor.wellbeing_co2=unavailable; restored=True, supported_features=0, device_class=carbon_dioxide, unit_of_measurement=ppm, friendly_name=CO2 @ 2021-05-29T11:15:47.088112+02:00>>

labaland commented 3 years ago

custom_components.wellbeing] Dammvippan 🌀♻️: {'pncId': '950011385929004595087076', 'applianceData': {'applianceName': 'Dammvippan 🌀♻️', 'created': '2021-03-07T12:28:11.7103225Z', 'modelName': 'PUREA9', 'pncId': '95001**************76'}, 'twin': {'deviceId': '9500113**************076', 'properties': {'desired': {'TimeZoneStandardName': 'Europe/Stockholm', 'FrmVer_NIU': '2.20', '$metadata': {'$lastUpdated': '2021-03-15T18:23:21.948476Z', '$lastUpdatedVersion': 5, 'TimeZoneStandardName': {'$lastUpdated': '2021-03-15T18:23:21.948476Z', '$lastUpdatedVersion': 5}, 'FrmVer_NIU': {'$lastUpdated': '2021-03-15T18:23:21.948476Z', '$lastUpdatedVersion': 5}}, '$version': 5}, 'reported': {'FrmVer_NIU': '2.20', 'Workmode': 'Manual', 'FilterRFID': '1DB7D279580000', 'FilterLife': 79, 'Fanspeed': 3, 'UILight': True, 'SafetyLock': False, 'Ionizer': True, 'FilterType': 96, 'DspIcoTVOC': True, 'ErrPM2_5': False, 'ErrTVOC': False, 'ErrTempHumidity': False, 'ErrFanMtr': False, 'ErrCommSensorDisplayBrd': False, 'DoorOpen': False, 'ErrRFID': False, 'SignalStrength': 'GOOD', '$metadata': {'$lastUpdated': '2021-05-30T16:20:04.61Z', 'FrmVer_NIU': {'$lastUpdated': '2021-03-07T13:01:40.0427276Z'}, 'Workmode': {'$lastUpdated': '2021-05-30T13:59:50.4988439Z'}, 'FilterRFID': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'FilterLife': {'$lastUpdated': '2021-05-28T15:49:39.2480814Z'}, 'Fanspeed': {'$lastUpdated': '2021-05-30T15:32:46.5311065Z'}, 'UILight': {'$lastUpdated': '2021-03-07T12:31:34.3164768Z'}, 'SafetyLock': {'$lastUpdated': '2021-05-19T07:28:58.0417734Z'}, 'Ionizer': {'$lastUpdated': '2021-03-16T22:35:57.4302299Z'}, 'FilterType': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'DspIcoTVOC': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'ErrPM2_5': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'ErrTVOC': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'ErrTempHumidity': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'ErrFanMtr': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'ErrCommSensorDisplayBrd': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'DoorOpen': {'$lastUpdated': '2021-05-30T13:59:50.2481236Z'}, 'ErrRFID': {'$lastUpdated': '2021-03-07T12:28:17.0454983Z'}, 'SignalStrength': {'$lastUpdated': '2021-05-30T13:59:50.6438502Z'}, 'PM1': {'$lastUpdated': '2021-05-30T13:59:50.473Z'}, 'PM2_5': {'$lastUpdated': '2021-05-30T16:20:04.61Z'}, 'PM10': {'$lastUpdated': '2021-05-30T16:20:04.61Z'}, 'TVOC': {'$lastUpdated': '2021-05-30T16:15:08.35Z'}, 'CO2': {'$lastUpdated': '2021-05-30T16:17:28.921Z'}, 'Temp': {'$lastUpdated': '2021-05-30T15:33:37.754Z'}, 'Humidity': {'$lastUpdated': '2021-05-30T15:39:35.236Z'}, 'RSSI': {'$lastUpdated': '2021-05-30T13:59:50.63Z'}}, '$version': 1184, 'deviceId': '950011385929004595087076', 'PM1': 0, 'PM2_5': 1, 'PM10': 1, 'TVOC': 23, 'CO2': 546, 'Temp': 23, 'Humidity': 44, 'RSSI': -54}}, 'status': 'enabled', 'connectionState': 'Connected'}, 'telemetry': None}
2021-05-30 18:28:26 DEBUG (MainThread) [custom_components.wellbeing] Finished fetching wellbeing data in 3.395 seconds

------------

2021-05-30 18:28:07 DEBUG (MainThread) [custom_components.wellbeing] Current token is not set or expired

---
2021-05-30 18:28:25 INFO (MainThread) [custom_components.wellbeing] Fetched data: [{'applianceName': 'Dammvippan 🌀♻️', 'created': '2021-03-07T12:28:11.7103225Z', 'id': 669979, 'modelName': 'PUREA9', 'timeZoneStandardName': 'Europe/Stockholm', 'pncId': '950**************7076', 'domainId': 455229}]

-----------------------

custom_components.wellbeing] Fetched data: {'pnc': '950011385', 'manufacturingDateCode': '929', 'serialNumber': '929243259', 'brand': 'ELECTROLUX', 'device': 'AIR_PURIFIER', 'model': 'A9', 'variant': 'CADR600', 'colour': 'GREY', 'market': 'EUROPE'}

---------------
JohNan commented 3 years ago

Thanks. I will complete with my data. I think some key might be different and it crashes since you get the log that it is still waiting for the integration.

JohNan commented 3 years ago

@Klapperman @labaland I have found the issue. It's the filter type that cannot be parsed. I forgot to add a default value if the specific type was not found in my id-to-name-map.

@Klapperman You have filter type 99 @labaland You have filter type 96

Can you send me the name of the filter as it is reported in the app?

I'll also add a default value to prevent it to crash.

Klapperman commented 3 years ago

@Klapperman @labaland I have found the issue. It's the filter type that cannot be parsed. I forgot to add a default value if the specific type was not found in my id-to-name-map.

@Klapperman You have filter type 99 @labaland You have filter type 96

Can you send me the name of the filter as it is reported in the app?

I'll also add a default value to prevent it to crash.

@JohNan my filter is reported as a "BREATHE 360" filter.

labaland commented 3 years ago

Screenshot_20210531_095432_com electrolux wellbeing

JohNan commented 3 years ago

Thank you.

It's strange that they use the same name for filters with different type number

FILTER_TYPE = {
    48: "Particle filter",
    64: "Breeze 360 filter",
    96: "Breeze 360 filter",
    99: "Breeze 360 filter",
    192: "Odor filter",
    0: "Filter"
}

I will push a new release as soon as the checks are finished.

JohNan commented 3 years ago

Published a new version https://github.com/JohNan/homeassistant-wellbeing/releases/tag/v0.0.6 Let me know if it works and reopen this issue if you still experience problems.

labaland commented 3 years ago

Published a new version https://github.com/JohNan/homeassistant-wellbeing/releases/tag/v0.0.6 Let me know if it works and reopen this issue if you still experience problems.

Bra jobbat! 😁🙏🙏

Screenshot_20210531_122414_io homeassistant companion android

labaland commented 3 years ago

@JohNan Får detta meedelande när jag ändrar speed genom att dra i slidern. Har du någon trevligt card setup för din luftrenare att dela med dig av? :)

image

JohNan commented 3 years ago

@labaland jag fick samma sak, men bara 1 gång. Gjorde omstart av HA och då var det borta. Kan vara något cachat värde som ställde till det.

Tyvärr har jag inte gjort något snyggt kort. Det är inte min starkast sida :P

labaland commented 3 years ago

@JohNan . Har startat om men får det ändå varje gång :( % stegen för mig är : 0, 11, 22, 33 ,44, 56, 67, 78, 89 . I Slidern.

Testat service call set speed/percentage med "1 - 9 & 11-44 men går ej där heller :P

image

JohNan commented 3 years ago

@labaland Try out the latest version. Hopefully this works now :)

labaland commented 3 years ago

@JohNan Hej! Tack nu får jag inga felmmedelanden. Men dock är slidern"buggig" :P Kan inte ändra till vissa steg mellan 1-9. om olika steg är olika värden då och då :p Men det kanske funkar bättre med service calls? Ska testa lite :) Tack för fix!!

JohNan commented 3 years ago

@JohNan Hej! Tack nu får jag inga felmmedelanden. Men dock är slidern"buggig" :P Kan inte ändra till vissa steg mellan 1-9. om olika steg är olika värden då och då :p Men det kanske funkar bättre med service calls? Ska testa lite :) Tack för fix!!

Det beror på att vi pollar för ofta. Värdet hinner skrivas över samt att det tar tid innan värdet sparas i luftrenare.

Prova höj polling till 120 sekunder.

labaland commented 3 years ago

@JohNan Hej! Tack nu får jag inga felmmedelanden. Men dock är slidern"buggig" :P Kan inte ändra till vissa steg mellan 1-9. om olika steg är olika värden då och då :p Men det kanske funkar bättre med service calls? Ska testa lite :) Tack för fix!!

Det beror på att vi pollar för ofta. Värdet hinner skrivas över samt att det tar tid innan värdet sparas i luftrenare.

Prova höj polling till 120 sekunder.

Tack! Ska prova ändra :)

https://user-images.githubusercontent.com/20958435/120482768-bba96280-c3b1-11eb-8696-27241efeba66.mp4

Inte duktig heller men något jag fixat hittils iaf :P :

https://pastebin.ubuntu.com/p/4trw7sNkd7/