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
70.09k stars 29.15k forks source link

[Wallbox Integration] Error 403 when switching pause/resume switch #121546

Open andreaconfa opened 2 weeks ago

andreaconfa commented 2 weeks ago

The problem

When i try to toggle the switch "pause/resume charging" created by the integration "Wallbox" i get thie error:

Error: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action

What version of Home Assistant Core has the issue?

core-2024.6.4

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

Wallbox

Link to integration documentation on our website

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

Diagnostics information

set_wallbox_power: If at step 1: If at step 1: If at step 1: If at step 1: Error executing script. Error for if at pos 1: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action set_wallbox_power: If at step 1: If at step 1: If at step 1: Error executing script. Error for if at pos 1: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action set_wallbox_power: If at step 1: If at step 1: Error executing script. Error for if at pos 1: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action set_wallbox_power: If at step 1: Error executing script. Error for if at pos 1: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action set_wallbox_power: Error executing script. Error for if at pos 1: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/350392/remote-action

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 2 weeks ago

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

Code owner commands Code owners of `wallbox` 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 wallbox` 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)


wallbox documentation wallbox source (message by IssueLinks)

hesselonline commented 2 weeks ago

Hi @andreaconfa, have you tried searching the forum or asking members in the forum for suggestions first? I heard that in some cases pausing does not work (specific accounts, multiple accounts, OCPP setup). Please raise an issue here if you are sure there is something wrong with the code that needs to be addressed (not for personal setup support).

amaisano commented 2 weeks ago

I can confirm, Wallbox intentionally kills the on/off (start/stop) function of your unit when OCPP is enabled, even if the OCPP provider is read-only. Ask me how I know.