Unable to setup Teslaproxy - driving me crazy

I’m trying to setup Teslaproxy as I want to control (at home) the charging speed of the car and only charge when the energy price is low. But this addon is driving me crazy. I believe I’m following all the steps but still no luck.

Situation:

  • NGINX Home Assistant SSL proxy has been installed with the following config:
    domain: xxxxxxxxxx.hopto.org
    hsts: max-age=31536000; includeSubDomains
    certfile: fullchain.pem
    keyfile: privkey.pem
    cloudflare: false
    customize:
    active: false
    default: nginx_proxy_default*.conf
    servers: nginx_proxy/*.conf
    real_ip_from:

  • Letsencrypt is installed and configured as:

domains:

  • xxxxxxxxxx.hopto.org
    email: [email protected]
    keyfile: privkey.pem
    certfile: fullchain.pem
    challenge: http
    dns: {}

  • I also have the TeslaFleet installed and running.

  • The TeslaProxy has the following configuration:
    client_id: xxxxxxxxxxxxxxxxxxxx
    client_secret: xxxxxxxxxxxxxxxxxxxx
    domain: xxxxxxxxxx.hopto.org
    debug: true
    regenerate_auth: true
    region: Europe, Middle East, Africa

  • Port 80 and 443 on my modem are forwarded to Home Assistant.

  • I’ve created an App in the Tesle development environment.

  • What I don’t know where to copy the Tesla key pair which needs to be generated according to the Tesla instructions. Or is the TeslaProxy doing this for you?

  • I also notices that the TeslaProxy is automatically generating/registering the Home Assistant App in the Tesla Development portal!

  • At some stage I need to scan the QR code with the mobile phone to grant access to the thrid party app but then I get the following error message in the Tesla mobile phone app:
    IMG_0507

Any suggestions on what the problem could be?