albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
90 stars 23 forks source link

Add alerts #48

Closed tieskuh closed 1 month ago

tieskuh commented 7 months ago

Today my washer stopped because the drain filter was clogged. I downloaded the debug log to see if any information about that event was present. There is indeed an alert in the log:

'alerts': [{'severity': 'WARNING', 'acknowledgeStatus': 'NOT_NEEDED', 'code': 'CHECK_DRAIN_FILTER'}]

This might be useful information to add to the integration.

2024-04-21 20:05:48.565 DEBUG (MainThread) [custom_components.electrolux_status] Electrolux appliance state updated {"914550957_01:11000001-443E0710515B": {"doorState": "CLOSED", "displayLight": "DISPLAY_LIGHT_0", "timeToEnd": 2460, "miscellaneous": {"defaultSoftPlus": false}, "applianceUiSwVersion": "U1C08203", "applianceTotalWorkingTime": 3373200, "remoteControl": "NOT_SAFETY_RELEVANT_ENABLED", "fCMiscellaneousState": {"optisenseResult": 7200}, "cyclePhase": "RINSE", "endOfCycleSound": "SHORT_SOUND", "startTime": -1, "userSelections": {"anticreaseNoSteam": false, "preWashPhase": false, "anticreaseWSteam": false, "analogSpinSpeed": "1600_RPM", "stain": false, "nightCycle": false, "extraRinseNumber": "NONE", "soak": false, "rinseHold": false, "analogTemperature": "40_CELSIUS", "softener": false, "steamValue": "STEAM_OFF", "programUID": "COTTON_PR_ECO40-60", "wMEconomy": false, "timeManagerLevel": "NORMAL", "wmEconomy": true, "tcSensor": false, "ultraMix": false}, "waterHardness": "SOFT", "defaultExtraRinse": "EXTRA_RINSE_OFF", "totalWashingTime": 3369600, "applianceInfo": {"applianceType": "WM"}, "doorLock": "OFF", "uiLockMode": false, "washingNominalLoadWeight": 9000, "totalWashCyclesCount": 452, "waterSoftenerMode": "WASH_AND_RINSE", "fcOptisenseLoadWeight": 65535, "applianceState": "PAUSED", "applianceMode": "NORMAL", "applianceMainBoardSwVersion": "WL130065", "totalCycleCounter": 452, "measuredLoadWeight": 65535, "alerts": [{"severity": "WARNING", "acknowledgeStatus": "NOT_NEEDED", "code": "CHECK_DRAIN_FILTER"}], "networkInterface": {"otaState": "IDLE", "swVersion": "v5.3.1", "linkQualityIndicator": "GOOD", "niuSwUpdateCurrentDescription": "A07491702B-S00006962A", "swAncAndRevision": "S00006962A"}, "applianceCareAndMaintenance0": {"1": {"occured": false, "threshold": 60}, "2": {"occured": false, "threshold": 80}, "3": {"occured": false, "threshold": 80}, "4": {"occured": false, "threshold": 240}, "5": {"occured": false, "threshold": 240}}, "applianceCareAndMaintenance1": {"6": {"occured": false, "threshold": 150}, "7": {"occured": false, "threshold": 0}, "8": {"occured": false, "threshold": 0}, "9": {"occured": false, "threshold": 0}, "10": {"occured": false, "threshold": 0}}, "applianceCareAndMaintenance2": {"11": {"occured": false, "threshold": 0}}, "applianceCareAndMaintenance3": {"16": {"occured": false, "threshold": 0}}, "autoDosing": {}, "cycleSubPhase": "NOT_AVAILABLE", "connectivityState": "connected"}}
2024-04-21 20:05:48.565 DEBUG (MainThread) [custom_components.electrolux_status] Electrolux update reported data {'doorState': 'CLOSED', 'displayLight': 'DISPLAY_LIGHT_0', 'timeToEnd': 2460, 'miscellaneous': {'defaultSoftPlus': False}, 'applianceUiSwVersion': 'U1C08203', 'applianceTotalWorkingTime': 3373200, 'remoteControl': 'NOT_SAFETY_RELEVANT_ENABLED', 'fCMiscellaneousState': {'optisenseResult': 7200}, 'cyclePhase': 'RINSE', 'endOfCycleSound': 'SHORT_SOUND', 'startTime': -1, 'userSelections': {'anticreaseNoSteam': False, 'preWashPhase': False, 'anticreaseWSteam': False, 'analogSpinSpeed': '1600_RPM', 'stain': False, 'nightCycle': False, 'extraRinseNumber': 'NONE', 'soak': False, 'rinseHold': False, 'analogTemperature': '40_CELSIUS', 'softener': False, 'steamValue': 'STEAM_OFF', 'programUID': 'COTTON_PR_ECO40-60', 'wMEconomy': False, 'timeManagerLevel': 'NORMAL', 'wmEconomy': True, 'tcSensor': False, 'ultraMix': False}, 'waterHardness': 'SOFT', 'defaultExtraRinse': 'EXTRA_RINSE_OFF', 'totalWashingTime': 3369600, 'applianceInfo': {'applianceType': 'WM'}, 'doorLock': 'OFF', 'uiLockMode': False, 'washingNominalLoadWeight': 9000, 'totalWashCyclesCount': 452, 'waterSoftenerMode': 'WASH_AND_RINSE', 'fcOptisenseLoadWeight': 65535, 'applianceState': 'PAUSED', 'applianceMode': 'NORMAL', 'applianceMainBoardSwVersion': 'WL130065', 'totalCycleCounter': 452, 'measuredLoadWeight': 65535, 'alerts': [{'severity': 'WARNING', 'acknowledgeStatus': 'NOT_NEEDED', 'code': 'CHECK_DRAIN_FILTER'}], 'networkInterface': {'otaState': 'IDLE', 'swVersion': 'v5.3.1', 'linkQualityIndicator': 'GOOD', 'niuSwUpdateCurrentDescription': 'A07491702B-S00006962A', 'swAncAndRevision': 'S00006962A'}, 'applianceCareAndMaintenance0': {'1': {'occured': False, 'threshold': 60}, '2': {'occured': False, 'threshold': 80}, '3': {'occured': False, 'threshold': 80}, '4': {'occured': False, 'threshold': 240}, '5': {'occured': False, 'threshold': 240}}, 'applianceCareAndMaintenance1': {'6': {'occured': False, 'threshold': 150}, '7': {'occured': False, 'threshold': 0}, '8': {'occured': False, 'threshold': 0}, '9': {'occured': False, 'threshold': 0}, '10': {'occured': False, 'threshold': 0}}, 'applianceCareAndMaintenance2': {'11': {'occured': False, 'threshold': 0}}, 'applianceCareAndMaintenance3': {'16': {'occured': False, 'threshold': 0}}, 'autoDosing': {}, 'cycleSubPhase': 'NOT_AVAILABLE', 'connectivityState': 'connected'}
2024-04-21 20:05:48.565 DEBUG (MainThread) [custom_components.electrolux_status] Electrolux updated reported data {'applianceId': '914550957_01:11000001-443E0710515B', 'applianceData': {'applianceName': 'Lavamat 9000', 'created': '2022-02-10T21:09:14.696Z', 'modelName': 'WM'}, 'properties': {'desired': {}, 'reported': {'doorState': 'CLOSED', 'displayLight': 'DISPLAY_LIGHT_0', 'timeToEnd': 2460, 'miscellaneous': {'defaultSoftPlus': False}, 'applianceUiSwVersion': 'U1C08203', 'applianceTotalWorkingTime': 3373200, 'remoteControl': 'NOT_SAFETY_RELEVANT_ENABLED', 'fCMiscellaneousState': {'optisenseResult': 7200}, 'cyclePhase': 'RINSE', 'endOfCycleSound': 'SHORT_SOUND', 'startTime': -1, 'userSelections': {'anticreaseNoSteam': False, 'preWashPhase': False, 'anticreaseWSteam': False, 'analogSpinSpeed': '1600_RPM', 'stain': False, 'nightCycle': False, 'extraRinseNumber': 'NONE', 'soak': False, 'rinseHold': False, 'analogTemperature': '40_CELSIUS', 'softener': False, 'steamValue': 'STEAM_OFF', 'programUID': 'COTTON_PR_ECO40-60', 'wMEconomy': False, 'timeManagerLevel': 'NORMAL', 'wmEconomy': True, 'tcSensor': False, 'ultraMix': False}, 'waterHardness': 'SOFT', 'defaultExtraRinse': 'EXTRA_RINSE_OFF', 'totalWashingTime': 3369600, 'applianceInfo': {'applianceType': 'WM'}, 'doorLock': 'OFF', 'uiLockMode': False, 'washingNominalLoadWeight': 9000, 'totalWashCyclesCount': 452, 'waterSoftenerMode': 'WASH_AND_RINSE', 'fcOptisenseLoadWeight': 65535, 'applianceState': 'PAUSED', 'applianceMode': 'NORMAL', 'applianceMainBoardSwVersion': 'WL130065', 'totalCycleCounter': 452, 'measuredLoadWeight': 65535, 'alerts': [{'severity': 'WARNING', 'acknowledgeStatus': 'NOT_NEEDED', 'code': 'CHECK_DRAIN_FILTER'}], 'networkInterface': {'otaState': 'IDLE', 'swVersion': 'v5.3.1', 'linkQualityIndicator': 'GOOD', 'niuSwUpdateCurrentDescription': 'A07491702B-S00006962A', 'swAncAndRevision': 'S00006962A'}, 'applianceCareAndMaintenance0': {'1': {'occured': False, 'threshold': 60}, '2': {'occured': False, 'threshold': 80}, '3': {'occured': False, 'threshold': 80}, '4': {'occured': False, 'threshold': 240}, '5': {'occured': False, 'threshold': 240}}, 'applianceCareAndMaintenance1': {'6': {'occured': False, 'threshold': 150}, '7': {'occured': False, 'threshold': 0}, '8': {'occured': False, 'threshold': 0}, '9': {'occured': False, 'threshold': 0}, '10': {'occured': False, 'threshold': 0}}, 'applianceCareAndMaintenance2': {'11': {'occured': False, 'threshold': 0}}, 'applianceCareAndMaintenance3': {'16': {'occured': False, 'threshold': 0}}, 'autoDosing': {}, 'cycleSubPhase': 'NOT_AVAILABLE', 'connectivityState': 'connected'}, 'metadata': {}}, 'status': 'enabled', 'connectionState': 'connected'}
2024-04-21 20:05:48.565 DEBUG (MainThread) [custom_components.electrolux_status] Manually updated electrolux_status data