JohNan / homeassistant-wellbeing

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

ValueError: could not convert string to float: 'standBy' #131

Closed yazz007 closed 2 weeks ago

yazz007 commented 3 weeks ago

Hi, recently my HA shows error when changing FAN speed, nevertheless the speed is changed ;-) But please check the error and logs:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 657, in state numerical_value = int(value) ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: 'standBy'

ValueError: Sensor sensor.wellbeing_****_state has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'standBy' (<class 'str'>)

{ "applianceId": "************************", "connectionState": "Connected", "status": "enabled", "properties": { "reported": { "FilterLife_1": 0, "FilterType_1": 48, "WorkMode": "Auto", "Fanspeed": 2, "SafetyLock": False, "Ionizer": True, "PMSensState": True, "FilterType_2": 192, "FilterLife_2": 0, "Model": "A7", "UILight": False, "ErrImpellerStuck": "not active", "ErrPmNotResp": "not active", "ErrGasNotResp": "not active", "ErrTempRhNotResp": "not active", "ErrNfcTagNotPres_1": "not 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.05_ASPEN", "VmNo_MCU": "VM174_A_01.04.00", "FrmVer_NIU": "1.29.5", "Workmode": "Manual", "SchedulingState": "not set", "ErrCommSensorUIBrd": "not active", "logE": 3198, "logW": 3360, "capabilities": { "tasks": {} }, "SignalStrength": "GOOD", "tasks": {}, "$version": 10434, "deviceId": "************************", "State": "standBy", "PM1": 0, "PM2_5": 0, "PM10": 0, "Temp": 20.3, "Humidity": 69, "ECO2": 670, "TVOC": 463 } } }

JohNan commented 2 weeks ago

Can you please enable debug logging and add the logs here when you do the things that causes the error?