Tesla Fleet Client authentication failed

For the past few days I ahve been trying to set up the Tesla Fleet integration so I can pull by Powerwalls and EV into HA.

I have

  1. Created a Tesla Account
  2. Created an Application with Authorization Code and Machine-to-Machine set
  3. Generated a Public/Private Key Pair

However when I try to setup the Tesla Fleet integration in HA it opens the Tesla autnetication site then throws an error ( Tesla Auth ):

# Something went wrong. Try again later

Client authentication failed. Please verify the credential provided for client authentication is valid.
Reference ID: b82d60d6-07e1-4e61-ae31-a024dca61975 

I've been around the loop a few times, setting up additional applications with the same outcome.
My friendly AI says there's a bug that means the Tesla process is setting grant-type to

client-credentials, authorization-code

and suggests this is wrong, but not how to fix it.

Any advice would be hugely appreciated.


Additional info:

  • I have a UK Tesla account.
  • I am not being prompted for my credentials before getting the error

Same issue here. Seems to have happened after setting up and removing several Tesla dev apps. Not sure how to resolve either.