-
Notifications
You must be signed in to change notification settings - Fork 98
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
Start/Stop/Timed Charging Not Working #227
Comments
Try latest. |
Same, but new error message: 2024-03-05 17:32:48.897 ERROR (MainThread) [custom_components.audiconnect.util] Unable to start charger of vehicle XXX: 403, message='', url=URL('https://msg.volkswagen.de/fs-car/bs/batterycharge/v1/Audi/DE/vehicles/XXX/charger/actions') VIN replaced with XXX. |
Any update on the issue? |
Is start_charger working, but stop_charging isn't? Can you provide logs during the service call? |
None of them work. Testet start_charging, stop_charging and start_timed_charging during the weekend. My car is not connected at the moment (at work), so I can provide logs) .. few hours later. The error message in my logs are the same as above. 403 error. |
I can tell that start stop charging is working for me! I am using version 1.6.2
I could only see a 403 error message... |
Thank you for this @DutchKillerbee! this is a great hint towards a solution. We'll have to look into how this service call is implemented. Wondering if you could provide more information about the PIN though:
Thanks for your help! |
Hmm. I have two Audi Accounts. The one i use in HA is a guest account, and I see now that "remote charging" is only visable in the main user. I'll try to swap to my main user and test again. |
Testet with main account, still 403 error :/ |
@coreywillwhat At a certain day (I forgot what day) I had to login with my audi account in my car profile! Since that moment start/stop charging is working for me! To be honest I don't know if there is any relation what I did but I can tell that start/stop charging is working for me now If I can help you providing some logs/other stuff please let me know. |
Some additional (maybe helpful) information:
|
Thank you so much @DutchKillerbee this is great information. The problem is, I can't test this, and there is a chance any changes will break your ability to use it without a PIN @DutchKillerbee . At least until we get the chance to revert it back. I would rather test this prior to pushing to the master branch. If I draft up a PR, would either @DutchKillerbee or @devslash0 be willing to test the code before we push to the master branch? |
An additional question: What region are each of you? NA, EU, etc.. |
I can test yes :) available this weekend. EU (Norway) |
@coreywillwhat |
If need be, I can test as well. |
We've debated a beta release, but it would complicate the auto-release schedule, so we haven't made any decisions on that yet. For testing, I would suggest using Studio Code Server add-on in HA to modify files/lines for testing based on the PR. It will be more clear what needs to be done when I actually put the PR together and you can take a look. I've run into an issue with this update though, as I'm in the US, and my car doesn't support start/stop/timed charging, I won't be able to figure out the action required for the S-PIN security token. @t0bias-r I'm not sure if you can help out here.... @DutchKillerbee is reporting that removing the SPIN from their audi account allows them to use the execute vehicle action to start/stop the charger. Looking at set_battery_charger it doens't look like we're using a security_token for this. If it is required for starting/stopping the charger, then we need to add it similar to the set_vehicle_lock. The only piece i think we're missing would be the |
@coreywillwhat I try to help :-) Just so I'm doing the right thing. I need to capture the API request for an action that requires the SPIN, right? |
thank you @t0bias-r! Yes, specifically the start/stop/timed charging action, if you can. |
No matter which charging setting I change or charing action is execute (timer, immediately) in the app, I never have to enter the SPIN (for my Q8 etron). Here are the API calls: What I don't currently know is which internal (security) calls are used for the challenge-response and for the hashing.... |
Same for me, start charging does not work anymore for a while. Willing to test / share logs if needed. |
Started working again. Not sure since which version, but at least as from latest 1.10.4, maybe even 1 earlier. |
Same here :/ 2024-11-11 11:36:21.203 ERROR (MainThread) [custom_components.audiconnect.util] Unable to start charger of vehicle xxx: 403, message='', url='https://msg.volkswagen.de/fs-car/bs/batterycharge/v1/Audi/DE/vehicles/xxx/charger/actions' Same with stop and start_timed |
Anyone got start_charger and stop_charger to work?
I can lock and unlock, but when i try to setup smart charging with home assistant i get:
2024-02-17 18:38:05.713 ERROR (MainThread) [custom_components.audiconnect.util] Unable to stop charger of vehicle XXX: Cannot stop charger, return code 'failed'
Running:
service: audiconnect.execute_vehicle_action
data:
vin: XXX
action: 'stop_charger'
XXX is my VIN.
The text was updated successfully, but these errors were encountered: