Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.1 報告錯誤 #148

Open
Marxxu3ru opened this issue Oct 4, 2024 · 4 comments
Open

1.3.1 報告錯誤 #148

Marxxu3ru opened this issue Oct 4, 2024 · 4 comments

Comments

@Marxxu3ru
Copy link

Marxxu3ru commented Oct 4, 2024

Hi Johan,

The same issue occurs when switching from fan speed mode to smart mode, causing an error to appear. I've attached the complete log file. I wonder if there's any way to resolve this. Thank
home-assistant_2024-10-06T06-42-19.787Z.log

@Marxxu3ru Marxxu3ru changed the title 1.2.8 Report an Error 1.2.9 Report an Error Oct 6, 2024
@Crazyhead90
Copy link

Crazyhead90 commented Oct 13, 2024

Same, trying to use the "fan speed" switch from "active" to "off" results in the same error:

Actie fan/turn_off kon niet worden uitgevoerd. 500, message='Internal Server Error', url='https://api.developer.electrolux.one/api/v1/appliances/9500XXXXXXXXXXXXXXXXXXXXX/command'

@Crazyhead90
Copy link

Crazyhead90 commented Oct 13, 2024

Seems to be a server error I think. Playing around with the:
https://developer.electrolux.one/documentation/reference#getApplianceInfo

I can fetch all of the data normally, but when i try to execute the command:

{
  "Workmode": "PowerOff"
}

It gives a Error 500:

{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "Unexpected server error",
  "detail": ""
}

The same goes for Workmode Manual. However, doing the same with Workmode Auto, it returns "Devices already in this state". I guess we have to wait for Electrolux to fix it themselves?

-- EDIT --
I've sent the Devs at Electrolux an email regarding this issues. I'll let you know when I hear something back

@Crazyhead90
Copy link

Still no response on the email, but for me it suddenly seems to be fixed. I can control the purifier again from the official AEG app as well as the home assist plugin.

@Marxxu3ru
Copy link
Author

My current issue remains the same:

Errors occur when using a custom integration.

Logger: pyelectroluxgroup.appliance
Source: custom_components/wellbeing/api.py:511
Integration: Electrolux Wellbeing (related documentation, issues)
First occurred: 7:29:56 PM (2 events)
Last logged: 10:28:39 PM

Error sending command '{'Workmode': 'Smart'}' to appliance 956006959323006505087076

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
Integration: Home Assistant WebSocket API (related documentation, issues)
First occurred: 7:29:56 PM (2 events)
Last logged: 10:28:39 PM

[281471837251632] Unexpected exception
[281471826080336] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 383, in async_handle_set_preset_mode_service
await self.async_set_preset_mode(preset_mode)
File "/config/custom_components/wellbeing/fan.py", line 116, in async_set_preset_mode
await self.api.set_work_mode(self.pnc_id, self._preset_mode)
File "/config/custom_components/wellbeing/api.py", line 511, 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 1158, 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'

Errors occur when using a custom integration.

Logger: pyelectroluxgroup.auth
Source: custom_components/wellbeing/api.py:429
Integration: Electrolux Wellbeing (related documentation, issues)
First occurred: 5:49:07 PM (7 events)
Last logged: 5:53:38 PM

Failed to get access token: Failed to get access token: 401, message='Unauthorized', url='https://api.developer.electrolux.one/api/v1/token/refresh'

@Marxxu3ru Marxxu3ru changed the title 1.2.9 Report an Error 1.3.1 報告錯誤 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants