alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
588 stars 100 forks source link

Unable to get vehicle data during setup, car will still be added. 429: TOO_MANY_REQUESTS #979

Closed Nessy1970 closed 4 months ago

Nessy1970 commented 4 months ago

Is there an existing issue for this?

I have read about the Fleet API and understand I may need to use it

Version of the Tesla component

3.22.0

Version of the Tesla car software

2024.14.6

Model

Model 3 - 2022

Current Behavior

Without any intervention on my part, while everything had been working fine for 24 years with fleet api. No more information is uploaded to HA.

Expected Behavior

Retrieve vehicle information

Debug logs

2024-05-29 21:21:18.219 WARNING (MainThread) [teslajsonpy.controller] Unable to get vehicle data during poll. 429: TOO_MANY_REQUESTS
2024-05-29 21:21:18.220 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.276 seconds (success: True)
2024-05-29 21:21:27.928 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-29 21:21:27.928 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-29 21:21:27.928 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-29 21:21:27.943 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-29 21:21:27.943 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-29 21:21:27.943 DEBUG (MainThread) [teslajsonpy.controller] 22645: online. Polling policy: normal. Update state: normal. Since last park: 130. Since last wake up: 130. Idle interval: 600. shift_state: None sentry: None climate: None, charging: None 
2024-05-29 21:21:27.944 DEBUG (MainThread) [teslajsonpy.controller] 22645: Updating VEHICLE_DATA
2024-05-29 21:21:27.944 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 5:03:18
2024-05-29 21:21:27.945 DEBUG (MainThread) [teslajsonpy.connection] get: https://c03d64a7-tesla-http-proxy/api/1/vehicles/LRW3E7FS9NCXXXXXX/vehicle_data?endpoints=charge_state%3Bclimate_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state%3Blocation_data {}
2024-05-29 21:21:28.015 DEBUG (MainThread) [teslajsonpy.connection] 429: Retry later

Anything else?

No response

skipishere commented 4 months ago

Possibly a duplicate of #961

Nessy1970 commented 4 months ago

Yes Sorry