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

Unexpected Renault exception #119891

Closed
mtwes opened this issue Jun 18, 2024 · 5 comments · Fixed by #120737
Closed

Unexpected Renault exception #119891

mtwes opened this issue Jun 18, 2024 · 5 comments · Fixed by #120737
Assignees

Comments

@mtwes
Copy link

mtwes commented Jun 18, 2024

The problem

I don't know since when this problem is persisting but it is still there after the last core update.
The function is not given which shall start or stop charging or changes the charging mode (instant / planned).

Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:241
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 15:00:12 (2 Vorkommnisse)
Zuletzt protokolliert: 15:00:40

[547248906608] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/renault/renault_vehicle.py", line 40, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/renault/renault_vehicle.py", line 156, in set_charge_stop
return await self._vehicle.set_charge_stop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/renault_api/renault_vehicle.py", line 532, in set_charge_stop
response = await self.session.set_vehicle_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/renault_api/renault_session.py", line 261, in set_vehicle_action
return await kamereon.set_vehicle_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/renault_api/kamereon/init.py", line 364, in set_vehicle_action
await request(
File "/usr/local/lib/python3.12/site-packages/renault_api/kamereon/init.py", line 157, in request
kamereon_response.raise_for_error_code()
File "/usr/local/lib/python3.12/site-packages/renault_api/kamereon/models.py", line 136, in raise_for_error_code
error.raise_for_error_code()
File "/usr/local/lib/python3.12/site-packages/renault_api/kamereon/models.py", line 98, in raise_for_error_code
raise exceptions.KamereonResponseException(
renault_api.kamereon.exceptions.KamereonResponseException: ('err.func.wired.invalid-body-format', 'Body has at least one wrongly formatted value')

The above exception was the direct cause of the following 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 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/button/init.py", line 134, in _async_press_action
await self.async_press()
File "/usr/src/homeassistant/homeassistant/components/renault/button.py", line 47, in async_press
await self.entity_description.async_press(self)
File "/usr/src/homeassistant/homeassistant/components/renault/renault_vehicle.py", line 42, in wrapper
raise HomeAssistantError(err) from err
homeassistant.exceptions.HomeAssistantError: ('err.func.wired.invalid-body-format', 'Body has at least one wrongly formatted value')

What version of Home Assistant Core has the issue?

2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

renault

Link to integration documentation on our website

https://www.home-assistant.io/integrations/renault/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (websocket_api) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of websocket_api can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign websocket_api Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


websocket_api documentation
websocket_api source
(message by IssueLinks)

@home-assistant
Copy link

Hey there @epenet, mind taking a look at this issue as it has been labeled with an integration (renault) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of renault can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign renault Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


renault documentation
renault source
(message by IssueLinks)

@epenet
Copy link
Contributor

epenet commented Jun 18, 2024

See hacf-fr/renault-api#1223

@epenet epenet added waiting-for-upstream We're waiting for a change upstream and removed integration: websocket_api labels Jun 18, 2024
@epenet epenet changed the title [547248906608] Unexpected exception Unexpected Renault exception Jun 18, 2024
@epenet epenet mentioned this issue Jun 28, 2024
20 tasks
@epenet epenet removed the waiting-for-upstream We're waiting for a change upstream label Jun 28, 2024
@epenet epenet mentioned this issue Jun 28, 2024
20 tasks
@epenet
Copy link
Contributor

epenet commented Jun 28, 2024

Have you tried all four values always, always_charging, scheduled, schedule_mode?
Do they all error?

@mtwes
Copy link
Author

mtwes commented Jul 8, 2024

All four are throwing a similar error. Despite the error, it switches from schedule to always charging. Sometimes without an error.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants