Skip to content
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 not working anymore #11854

Closed
miniluma opened this issue Jan 25, 2024 · 3 comments
Closed

Tesla not working anymore #11854

miniluma opened this issue Jan 25, 2024 · 3 comments

Comments

@miniluma
Copy link

miniluma commented Jan 25, 2024

Describe the bug

I see my Tesla Model Y as offline.
Trace states "Endpoint is only available on fleetapi. Visit https://developer.tesla.com/docs for more info"
Regenerated Tokens to make sure this is not the problem.
Also created a second config via Webinterface. Same result.

Steps to reproduce

  1. Configure Tesla and Log level to Trace
  2. Start EVCC
  3. Read Log
    ...

Configuration details

vehicles:
- name: ev3
  type: template
  template: tesla
  title: Model Y  
  accessToken: ...
  refreshToken: ...

Log details

an 25 12:20:09 pi4 evcc[79184]: [tesla ] TRACE 2024/01/25 12:20:09 POST https://auth.tesla.com/oauth2/v3/token
Jan 25 12:20:10 pi4 evcc[79184]: [tesla ] TRACE 2024/01/25 12:20:10 client_id=ownerapi&grant_type=refresh_token&refresh_token=***
Jan 25 12:20:10 pi4 evcc[79184]: --
Jan 25 12:20:10 pi4 evcc[79184]: {"access_token":"...","expires_in":28800,"token_type":"Bearer"}
Jan 25 12:20:10 pi4 evcc[79184]: [tesla ] TRACE 2024/01/25 12:20:10 GET https://owner-api.teslamotors.com/api/1/vehicles
Jan 25 12:20:11 pi4 evcc[79184]: [tesla ] TRACE 2024/01/25 12:20:11 {"response":null,"error":"Endpoint is only available on fleetapi. Visit https://developer.tesla.com/docs for more info","error_description":""}
Jan 25 12:20:11 pi4 evcc[79184]: [main  ] ERROR 2024/01/25 12:20:11 creating vehicle ev3 failed: cannot create vehicle type 'template': cannot create vehicle type 'tesla': cannot get vehicles: 412 Precondition Failed

What type of operating system are you running?

Linux

Version

0.123.9

@miniluma
Copy link
Author

I have the same issue in my FHEM setup, so it could be an API change on Tesla side

@miniluma
Copy link
Author

@andig
Copy link
Member

andig commented Jan 25, 2024

Solved: #10802

@andig andig closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants