I’m trying to create an automation which will trigger the charging for my wallbox EV charger. However, it’s not working as expected.
Looking at the errors it appears about 50% of the time it gets a 403 forbidden from the Wallbox API. Is there anyway I can implement some retry logic to keep trying until it successfully change the state?
I’m also looking to modify the automation to use excess solar when the car is plugged in. Any help to do that would also be grateful. I do have an entity tracking when there is excess, but there needs to be excess over 1.6kw and then meter the voltage to the car by the same amount.
With my automation I have multiple conditions that check for things like energy rates and solar panel generation before attempting to turn on charging at the Wallbox. I don’t determine excess in real time. I observed the amount my house uses when there are no large draws (e.g., air conditioning not running) and set my solar power generation trigger based on a constant amount above that. Then I set a constant car charging current limit. So if my house draws 1kW and I set the solar power generation trigger at 2kW, I set the car charging current limit so that charging power is around 1kW. Those aren’t the exact numbers.
Any luck with the 403 forbidden error? I am getting the following every time an automation tries to turn on (or off) Wallbox Pause Resume: Error: 403 Client Error: Forbidden for url: https://api.wall-box.com/v3/chargers/xxxxxx/remote-action. As a result, I have been forced to turn on/off charging at the car, but that isn’t working as smoothly.
My first (unrelated) advice is to stay away from device ids.
But back on topic, I noticed that when unlocking, the wallbox integration always will go unavailable for a short while, and states take some time to register. So what I do is add a wait for the expected states before I turning on charging.
Hey, I’m also interested in building an application for my Wallbox charger. Could you point me in the right direction on where to find the Wallbox API documentation or any resources that could help? I’d love to explore how the API works to create custom automations. Thanks!