evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Tesla New API can't login // Vehicle Offline

Open AnBo83 opened this issue 2 years ago • 3 comments

Describe the bug

With the 'new' Tesla API, a login is not possible in Version 0.124.0

Steps to reproduce

  1. Update Config to "template: tesla-command"

  2. Get new Access/Refreshtokens using https://tesla.evcc.io/ image

  3. Update Config with new Tokens

  4. Restart EVCC

  5. Cars marked as offline, Logfile says: "cannot create vehicle type 'template': cannot create vehicle type 'tesla-command': oauth2: "login_required" "Login required"" ...

Configuration details

vehicles:
- type: template
  template: tesla-command
  title: Tesla1
  accessToken: ***
  refreshToken: ***
  vin: **
  capacity: 77
  name: ev1
  mode: pv
  priority: 10

Log details

cannot create vehicle type 'template': cannot create vehicle type 'tesla-command': oauth2: "login_required" "Login required"

What type of operating system are you running?

Linux / Home-Assistant Plugin

Version

0.124.0

AnBo83 avatar Feb 01 '24 08:02 AnBo83

Did you create the new tokens using https://tesla.evcc.io/ or how did you create the tokens?

litithio avatar Feb 01 '24 09:02 litithio

yes, i create new tokens using https://tesla.evcc.io. The tokens are working for 1 time after restart or disconnect the vehicle the tokens doesn't work and the errormessage appears.

AnBo83 avatar Feb 01 '24 09:02 AnBo83

Make sure the pasted Tesla tokens are correct. If yes share your full config with [email protected] for analysis.

andig avatar Feb 01 '24 09:02 andig