JohNan / homeassistant-wellbeing

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

1.2.7 Report an Error #130

Open Marxxu3ru opened 3 weeks ago

Marxxu3ru commented 3 weeks ago

Hi, thanks for your hard work. In this version, a new ‘Smart Mode’ option for the fan has been added, but it still doesn’t work. Additionally, the Electrolux app has a toggle feature called ‘Silent Fan,’ which limits the fan speed to 2. Is this feature the same as ‘Quiet Mode’? I’ve attached the error log file. Model Number:EP53-48SWA home-assistant_2024-08-23T03-51-05.974Z.log home-assistant_2024-08-23T03-49-56.075Z.log

JohNan commented 3 weeks ago

Thank you. Try https://github.com/JohNan/homeassistant-wellbeing/releases/tag/v1.2.5 and let me know if it works for you.

Marxxu3ru commented 3 weeks ago

Good morning, Johan Nenzén. Thank you for your hard work. The issue with Smart Mode in version 1.2.5 still persists. Could this be related to the fact that the device is in the Asia region? I currently live in Taiwan. I’ve attached the error report for your reference. Thank you.

記錄器: homeassistant.components.websocket_api.http.connection 來源: components/websocket_api/commands.py:241 整合: Home Assistant WebSocket API (相關文件, 問題) 首次發生: 上午10:53:57 (3 事件) 最後紀錄: 上午10:55:39

[281472822881024] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 430, in async_handle_turn_on_service await self.async_turn_on(percentage, preset_mode, **kwargs) File "/config/custom_components/wellbeing/fan.py", line 140, in async_turn_on await self.api.set_work_mode(self.pnc_id, self._preset_mode) File "/config/custom_components/wellbeing/api.py", line 391, in set_work_mode result = await appliance.send_command(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyelectroluxgroup/appliance.py", line 93, in send_command raise e File "/usr/local/lib/python3.12/site-packages/pyelectroluxgroup/appliance.py", line 90, in send_command resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1093, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url='https://api.developer.electrolux.one/api/v1/appliances/956006959323006505087076/command'

home-assistant_2024-08-24T02-57-35.285Z.log

JohNan commented 3 weeks ago

I'm not sure. The server respond with error 500 Internal Server Error, which is an error at their side.

Can you enable debug logs and try again and post the logs. I want to see what commands are sent.

Marxxu3ru commented 3 weeks ago

I’m providing you with a file to see if it contains the information you need. Thank you.

1

home-assistant_2024-08-24T12-20-18.898Z.log

Marxxu3ru commented 3 weeks ago

Updated to version 1.2.6 and provided the complete logs. I hope this helps you. The Smart Mode is still not working in version 1.2.6, and there are other error issues as well.

home-assistant_2024-08-25T09-22-00.213Z.log

Logger: homeassistant.components.fan Source: components/fan/init.py:295 integration: Fan (documentation, issues) First occurred: 5:13:03 PM (4 occurrences) Last logged: 5:14:37 PM Entity sensor.wellbeing_空氣清淨機_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues Entity sensor.wellbeing_空氣清淨機_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues

This error originated from a custom integration. Logger: pyelectroluxgroup.appliance Source: custom_components/wellbeing/api.py:406 integration: Electrolux Wellbeing (documentation, issues) First occurred: 5:14:15 PM (3 occurrences) Last logged: 5:14:51 PM Error sending command '{'UILight': True}' to appliance 956006959323006505087076 Error sending command '{'UILight': False}' to appliance 956006959323006505087076

This error originated from a custom integration. Logger: pyelectroluxgroup.appliance Source: custom_components/wellbeing/api.py:394 integration: Electrolux Wellbeing (documentation, issues) First occurred: 5:16:27 PM (2 occurrences) Last logged: 5:16:30 PM Error sending command '{'Workmode': 'Smart'}' to appliance 956006959323006505087076

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:241 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 5:14:15 PM (5 occurrences) Last logged: 5:16:30 PM [281472346020384] Unexpected exception [281472307949152] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/wellbeing/switch.py", line 42, in async_turn_on await self.coordinator.api.set_feature_state(self.pnc_id, self._function, True) File "/config/custom_components/wellbeing/api.py", line 406, in set_feature_state await appliance.send_command(data) File "/usr/local/lib/python3.12/site-packages/pyelectroluxgroup/appliance.py", line 93, in send_command raise e File "/usr/local/lib/python3.12/site-packages/pyelectroluxgroup/appliance.py", line 90, in send_command resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1093, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 406, message='Not Acceptable', url='https://api.developer.electrolux.one/api/v1/appliances/956006959323006505087076/command'

magdogg commented 3 weeks ago

I still get the "PUREi9" is not a valid model error. Uninstalling and re adding integration did not work.

orangesunny commented 2 weeks ago

partially related, so I will not start a new issue for now.

@JohNan, I get this error in logs with the latest 1.2.7, but everything appears to be working fine for now. Here is what I can find in the logs:

Logger: homeassistant.components.fan
Source: components/fan/__init__.py:295
integration: Fan (documentation, issues)
First occurred: 00:05:48 (4 occurrences)
Last logged: 00:05:48

Entity sensor.wellbeing_A9old_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9old_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9bed_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9bed_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
JohNan commented 2 weeks ago

partially related, so I will not start a new issue for now.

@JohNan, I get this error in logs with the latest 1.2.7, but everything appears to be working fine for now. Here is what I can find in the logs:

Logger: homeassistant.components.fan
Source: components/fan/__init__.py:295
integration: Fan (documentation, issues)
First occurred: 00:05:48 (4 occurrences)
Last logged: 00:05:48

Entity sensor.wellbeing_A9old_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9old_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9bed_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues
Entity sensor.wellbeing_A9bed_Fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/JohNan/homeassistant-wellbeing/issues

Thank you. I'm aware of the logs, but it's nothing that should impact the functionality of the integration.

magdogg commented 1 week ago

Got this now: 500, message='Internal Server Error', url='https://api.developer.electrolux.one/api/v1/appliances/950011384049003645087076/info'

API down or something else?

JohNan commented 1 week ago

Got this now: 500, message='Internal Server Error', url='https://api.developer.electrolux.one/api/v1/appliances/950011384049003645087076/info'

API down or something else?

Looks like that. I get the same error when using their api on the developer portal.

{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "Unexpected server error",
  "detail": ""
}
JohNan commented 1 week ago

Looks like the reason for the downtime is Electrolux have updated the API after my feedback about missing toggles.

Screenshot_20240903_213501_Home Assistant

😁

Marxxu3ru commented 1 week ago

看來停機的原因是,在我反饋缺少切換後,伊萊克斯更新了API。

螢幕截圖_20240903_213501_家庭助理

😁

Hi Johan Nenzén,

After updating to version 1.2.7, I haven’t had much time to test it, but the issue seems to be the same as in version 1.2.6. It looks like you’ve identified the problem, so I’ll wait for the new version to be released and then test it again. Thank you for your hard work.

jswetzen commented 2 days ago

Looks like the reason for the downtime is Electrolux have updated the API after my feedback about missing toggles.

Is that what you call a "breaking fix"? 😁 Huge thanks Johan for you dedication and work!