-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Tesla fleet API: Result.Statuscode: 429 (TooManyRequests) cmd: vehicle_data #1304
Comments
Other apps have the same problem: |
This isnt good |
Workaround:It seems like the old owners API is not affected about the Rate Limit. So switching back to owners API might be a temporary solution.
|
Today there were no issues. |
Not really! Issues are still there! |
Was working Saturday, broke again sometime Sunday PM |
Using Fleet API, I receive 429 errors. Using Virtual Key I receive this and then Vehicle is Offline !!! 10.06.2024 13:41:06 : #1[Thread Pool Worker:10]: Command counter: 200 10.06.2024 13:42:21 : #1[Thread Pool Worker:32]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data?endpoints=charge_state&let_sleep=true 10.06.2024 13:49:57 : #1[Thread Pool Worker:53]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data?endpoints=drive_state%3Blocation_data&let_sleep=true 10.06.2024 13:50:07 : TeslaLogger process statistics 10.06.2024 13:50:14 : #1[Car_1:28]: ScanMyTesla FastMode: False |
Would it be possible to set the refresh rate to 5min when using Fleet-API, so that it does not run into a timeout and still being able to send commands? |
We use a couple of commands to run Teslalogger. I have a different idea to combine Fleet Telemetry with Commands to be able to have a refresh rate of 30 seconds. But I need to make a couple of changes |
That. would be great, as I am using teslalogger to send commands from evcc with the teslalogger charger template. |
FleetAPI only allows 5 charing commands per car per day => usless If you familar with linux and raspi: |
Hi Christian,
|
BTW, at the moment, Teslalogger notes too many requests and the car is "offline" (unexpected state for the failing API in my opinion). Yet in my app, which queried the data every 5 minutes (up to a few minutes ago, I now reduced it a bit), the fleet API works (same car, same credentials), also Tronity did show up-to-date data. Maybe some scopes of the API are restricted while others aren't? I use |
Just to add - in the UK my electricity supplier (octopus) uses the fleet API multiple times overnight to start and stop charging at times that are most advantageous to it for wholesale energy prices |
maybe because they already paying for more requests/commands? A lot of such companies got contracts with NDA so they can use it already... Or maybe because Octopus and Tesla are "friends"? ;) |
I don't know about that, or if Tronity pays, but until now I don't pay anything to Tesla for my requests. Ah, but now, a little math helps: 5 minutes interval are 288 requests. 🤔 Sorry about my misleading comment - if Teslalogger uses more, that's different. |
Not you, but logger-team. And if, you will pay to logger-team |
@Adminius No, "my" requests are personal from my own app's code. Teslalogger and Tronity run in parallel using their own requests for the same car. |
Now the normal API (600) has also been given a limit. |
seems so. no data even without fleet-api checked. |
It looks like it now good time to test fleet API again :D |
Totally not working, fleet api or not. Does not update at all, car is shown as offline - although having charged and been driving. No errors in protocol. |
Same here... Not using sleep api, but also not working. Following error in log: 15.06.2024 18:36:21 : #1[Thread Pool Worker:7]: Result.Statuscode: 429 (TooManyRequests) cmd: vehicle_data?endpoints=vehicle_config&let_sleep=true Sleep: 26620000ms, ratelimit-limit: 600, ratelimit-remaining: 0, ratelimit-reset: 26620, sleep till: 16.06.2024 02:00:01 |
15.06.2024 19:12:05 : #2[Thread Pool Worker:21]: Update Tesla Token From Refresh Token! |
Try this branch. You need FleetAPI+Virtual Key for it https://github.com/bassmaster187/TeslaLogger/tree/Free-FleetAPI |
@Adminius did you paste wrong link ? That link is for teslalogger instalation proces. |
It seems to work initially, but the log fills up and the machine gets into an overload: 15.06.2024 21:34:41 : #2[Thread Pool Worker:52]: StartChargingState Task GetCurrentState(): Online |
In evcc what is trying to get the charging state I get the following error in the log: [lp-2 ] ERROR 2024/06/15 19:38:14 charger status: Get "http://192.168.2.5:5010/currentjson/2": net/http: request canceled (Client.Timeout exceeded while awaiting headers) |
This link is for special brunch that should work with limited amount of requests. It's beta, so not in main branch and not yer available via normal update |
Ok, I reinstalled this branch not to 1.58.1.3 |
Is it necessary to make a clean install or can we just reinstall the old Version? |
It enough to change .exe file |
So far it is really working nice... Tested with several charge-commands, etc. coming from evcc via TeslaLogger. |
Official Tesla FleetAPI Limit for charging commands is 5 per day. Not suitable for EVCC. If works today, it's luck only. |
I hope that it works for you guys now. I have no idea how to update before it goes out like a normal update. Really looking forward to that 👍 |
Unfortunatly the errors are back: 16.06.2024 11:36:27 : #2[Thread Pool Worker:5]: Command: vehicle_data?endpoints=drive_state&let_sleep=true [0] |
@bill340 with the new beta version or the "old" version |
with the new beta... 1.58.1.4 |
I guess the updates while driving are causing this... I have another Tesla that was not moved since yesterday, but did several charging commands, etc... (more than 5) and on this one it is still working... |
Do you have any other software, like EVCC oder Homeassistant that uses Tesla integration direct via Tesla Server? |
I do have EVCC running... Custom chargers are configured to run via TeslaLogger... vehicles:
chargers:
uri: http://192.168.2.5:5010/command/2/charge_start_stop?${enable}
uri: http://192.168.2.5:5010/command/2/set_charging_amps?${maxcurrent}
uri: http://192.168.2.5:5010/command/2/wake_up
|
This uses your reqests... Use,TeslaLogger Vehicle integration |
Ok, did change it... |
No, it's not. I don't if it's possible on custom vehicle, if yes, we can integrate it |
When do you think this one will come as a normal update? |
I want to make some additional tests and fix 2 known bugs. So maybe the next 3 days. |
Thanks, looking forward to it. |
Today I have again an error on the mail Page in the upper left corner (Vehicle Info): Fatal Error: | TooManyRequests But nothing at all in the log... Still an issue with request timing? 24.06.2024 12:52:25 : #2[Thread Pool Worker:5975]: *** FT: Telemetry Server Data |
Does not work since 4 days with Virtual Key |
Also in the log now... 24.06.2024 13:13:37 : #2[Thread Pool Worker:7]: Command: vehicle_data?endpoints=drive_state&let_sleep=true [0] |
Since this morning 5am teslalogger says my car is offline.
Christian, is it possibel, that the server isnt working?
@bassmaster187
The LogFile is reporting an TooManyRequests error.
The text was updated successfully, but these errors were encountered: