Open timmkrause opened 1 month ago
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!
(message by CodeOwnersMention)
renault documentation renault source (message by IssueLinks)
Hi, I have the same problem... Best regards, Stephan
Me too... willing to help diagnosing!
It is a known issue with the renault API, it works for some but not others. If you want to help, I suggest that you get involved in the library, for example https://github.com/hacf-fr/renault-api/issues/1348
Same issue on my Renault Zoé from 2020.
Error log seem to indicate a wrong body content formatting.
Enregistreur: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
intégration: Home Assistant WebSocket API (documentation, problèmes)
S'est produit pour la première fois: 19:33:52 (6 occurrences)
Dernier enregistrement: 19:35:14
[547083911376] 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 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/button/__init__.py", line 132, 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')
Same issue on my Renault Zoé from 2020.
Error log seem to indicate a wrong body content formatting.
As described above this should be discussed on the library repository
The problem
The "Stop charge button" action provided by the Renault integration is not working.
I am pretty new to HA, please let me know if anything is missing.
What version of Home Assistant Core has the issue?
core-2024.10.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Renault
Link to integration documentation on our website
https://www.home-assistant.io/integrations/renault
Diagnostics information
Stopped because an error was encountered at October 26, 2024 at 17:50:46 (runtime: 0.69 seconds)
('err.func.wired.invalid-body-format', 'Body has at least one wrongly formatted value')
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response