-
Notifications
You must be signed in to change notification settings - Fork 40
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
SCENIC : Error: ('err.func.wired.forbidden', 'The access is forbidden') #1348
Comments
Sadly the Renault API is fully undocumented. |
Any clue on how I can to help find the endpoint / parameters ? Any documentation on how the current API was discovered ? |
As I said in the other repository: To discover the endpoints and the parameters that are sent and received, I managed (after several days) to set up an android emulator with the Renault application. The problem is that I'm afraid to add my car account, which is the one we are interested in to capture the call in question. So my doubts are, @epenet -Do you know if there could be any kind of blocking of the account if they detect something? In short, I'm a bit ‘afraid’ to use my original account, both for my testing environment and for yours. Give me more information on this, to see if I can do a final test. |
Originally it was much easier - I gave up when they went with certificate pinning.
They have rate-control in place, so if you do too many tests in a short time you may get rate-limited for a few hours. |
I'm going to prepare everything again, since it's been a few weeks since the tests, and anyway, as you know it's a bit complex at the beginning, and I need to remember some things again. Once I have it all working again .... I don't know where to share this with you. You tell me... I don't know if some things can be put here. |
Ok I may have found something to help. I have decompiled the Android apk , and found a "ChargeEndpoint" class that seems to contains all endpoints linked to charge : Here is the list :
The |
At first glance, it looks good... |
So quick update, I have tried to modify renault-api locally to test 2 things. But at this point , all my attempts are unsuccessful .. 1 - Adding
in models.py 2- Changing endpoint to point to
int renault_vehicle.py I will continue to investigate, but maybe there is something else that need to be done to get the access rights ? |
Soo, I think I found the solution looking at the Android app logs : When I click the button "Start Charge" on the app, there is no specific request for this, but there is a request that change the charging schedule. It just set all The request seems to wake up the vehicule, than if it is plugged in , it will start charge. Here is an exemple that will work for on my Scenic E-TECH to wake it up, and start charging.
settings_request.json :
The thing is if we want to integrate this, the request need to first GET the settings, then POST the modified result to ensure no setting is lost (that is what is done on the MyRenault) I could try to integrate this into renault-api for the scenic only, but I am not sure what is the best way ? With a specific setting for the Scenic ? A totally different command ? @epenet , any preferences ? |
Interesting, On the other hand .... I understand that when you press the ‘load button’ in the application, in case you have ‘timetable schedules’ you are warned that all of them will be deleted. Can it be related to what you say? On the other hand... You say you can't stop the upload? |
You mean the button to start the Charge ? Yes it disables all schedules (they are not deleted , just disabled)
If you mean stop de charging process, I personally don't have any button to do so on the MyRenault app for the Scenic. There is button to start, but if the vehicule is currently charging, there is no button to stop it.... |
oops... I think that's why |
Yes latest version. The previous version had a toggle I think, but I am not sure it was really working ... |
Yes, it was a switch. |
@remo-tech any news? |
Not really. I have managed to make a quick & dirty python script that just send the settings_request I mentioned earlier to restart the charge when needed. But I did not had the time to update the renault-api for this |
Hi ! Could you share your quick and dirty script? I'd really like to automate the charge restart after failure, and would gladly use any script in the meantime. |
Here it is : https://gist.github.com/remo-tech/e9ffa42ddb19b94b21687ffd766dd910 |
Try this post: payload:
action must be "paused" or "resume", but I always get response "REJECTED"; other values for Action result in "Body has at least one wrongly formatted value,undefined", but if you specify "start" or "stop" you get : Action must be either 'pause' or 'resume' but was 'start' My terribly experimental/alpha/buggish page for testing: https://jumpjack.github.io/myRenaultLC/ (please use a temporary password) |
There is a quota limit: if you send too many requests in a while, you get blocked for a while. |
Time ago this GET worked:
Now I get :-) :
|
Any luck with charge history? with endpoint "charges" i get "Not Found: There is no rows charge history for the vin", with "charrge-history" I get "you should not be there but well done for the effort", so what did they change? |
Hello,
I am trying to use this api to control the new Renault Scenic , I got the error :
And he log :
Any idea how to fix that ? The feature to start charging is working fine from the MyRenault app.
The text was updated successfully, but these errors were encountered: