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

Change to new Tesla API doesn't work #11985

Closed
MasterXDave opened this issue Feb 1, 2024 · 5 comments
Closed

Change to new Tesla API doesn't work #11985

MasterXDave opened this issue Feb 1, 2024 · 5 comments

Comments

@MasterXDave
Copy link
Sponsor

Describe the bug

I just changed to to new API. I used the manual from the Blog from cvcc. Changed the lvcc.yaml and generated new Token.
When I start lvcc, I get the response:
[main ] FATAL 2024/02/01 12:00:03 cannot create vehicle 'my_car': cannot create vehicle type 'template': invalid key: minsoc

Steps to reproduce

1.With every single start
2.
3.
...

Configuration details

vehicles:
  - name: my_car
    type: template
    template: tesla-command #tesla-command # change `tesla` to `tesla-command`
    title: Irina 3 # Wird in der Benutzeroberfläche angezeigt # Optional
    accessToken: XXXXX
    refreshToken: XXXXXXXXXXXXXX
    vin: XXXXXXXXXX # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind # Optional
    capacity: 78 # Akkukapazität in kWh # Optional 
    minCurrent: 4
    maxCurrent: 16
    #onIdentify: # set defaults when vehicle is identified
    # mode: pv # enable PV-charging when vehicle is identified
    minSoc: 20 # immediately charge to 20% regardless of mode unless "off" (disabled)
    targetSoc: 80 # limit charge to 80%

Log details

Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2024/02/01 12:06:07 evcc 0.124.0
[main  ] INFO 2024/02/01 12:06:07 using config file: /config/evcc.yaml
[main  ] INFO 2024/02/01 12:06:07 starting ui and api at :7070
[main  ] FATAL 2024/02/01 12:06:07 cannot create vehicle 'my_car': cannot create vehicle type 'template': invalid key: minsoc
[main  ] FATAL 2024/02/01 12:06:07 will attempt restart in: 5m0s

What type of operating system are you running?

HomeAssistant Add-on

Version

No response

@litithio
Copy link
Sponsor

litithio commented Feb 1, 2024

minSoc and targetSoc have been removed from evcc.yaml just like the error message says. They are now configured via the ui. Remove them and try again.

@MasterXDave
Copy link
Sponsor Author

MasterXDave commented Feb 1, 2024

This one word thank you.
But I guess it is still not working properly. I have the message : "Hof: max charge current 16A: vehicle not capable of current control" and if I switch to "Schnell" it says "connected" but nothing happens
It also write "offline" behind my car: Irina 3 (offline) and I can't use the SoC. Only add energy to the car.

@litithio
Copy link
Sponsor

litithio commented Feb 1, 2024

Controlling the vehicle via the new API is not yet working and still under development. See #11846 and #11893.

@andig
Copy link
Member

andig commented Feb 1, 2024

invalid key: minsoc

See #10978

@andig andig closed this as completed Feb 1, 2024
@andig
Copy link
Member

andig commented Feb 1, 2024

vehicle not capable of current control

See #11846

@evcc-io evcc-io locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants