home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.03k stars 29.69k forks source link

Error "The access is forbidden" when "Pause Load" or "start load" #122181

Open d4icon opened 1 month ago

d4icon commented 1 month ago

The problem

Registrador: homeassistant.components.websocket_api.http.connection Fuente: components/websocket_api/commands.py:241 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 11:55:18 (1 ocurrencias) Último inicio de sesión: 11:55:18

[140716478846368] 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 151, in set_charge_start return await self._vehicle.set_charge_start() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/renault_api/renault_vehicle.py", line 504, in set_charge_start 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.forbidden', 'The access is forbidden')

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 2731, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2774, 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/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.forbidden', 'The access is forbidden')

What version of Home Assistant Core has the issue?

core-2024.7.2

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

Registrador: homeassistant.components.websocket_api.http.connection Fuente: components/websocket_api/commands.py:241 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 11:55:18 (1 ocurrencias) Último inicio de sesión: 11:55:18

[140716478846368] 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 151, in set_charge_start return await self._vehicle.set_charge_start() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/renault_api/renault_vehicle.py", line 504, in set_charge_start 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.forbidden', 'The access is forbidden')

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 2731, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2774, 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/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.forbidden', 'The access is forbidden')

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 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!

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)

d4icon commented 1 month ago

One detail. The A/C call does work.

It is the other two that return the same error. (I tried with the car plugged in, of course).

I would love to be able to make it work for some automations.

Thanks

PD: car is new: Renault Scenic etech

matttheotter commented 3 weeks ago

Same issue with a new Megane Etech.