evcc icon indicating copy to clipboard operation
evcc copied to clipboard

config broken since update after 300.5

Open JNTNX433 opened this issue 10 months ago β€’ 5 comments

Describe the bug

Hello,

I have a setup with HAOS ; tesla local command and TW3Cteslamate to charge my teslas. It was working fine until last upate with the following message :

vehicle not capable of start/stop

Here the yaml that was working, i can't find what is new and what needs to be apply. Nothing in the doc. Thank you for your help.

Steps to reproduce

  1. working in 300.5 , broken after

...

Configuration details

site:
  title: Home
  meters:
    grid: Operator
    pv:
      - Solar
    battery:
      - Battery

mqtt:
  broker: 192.168.x.xxx:1883
  topic: evcc 
  user: [REDACTED_USER]
  password: [REDACTED_PASSWORD]

meters:
  - name: Operator
    type: custom
    power:
      source: http
      uri: https://[DOMAIN]/api/states/sensor.solarman_activepower_pcc_total
      method: GET
      headers:
        - Authorization: Bearer [REDACTED_TOKEN]
      insecure: true
      jq: ".state | tonumber * -1"
      timeout: 2s
    currents:
      - source: http
        uri: https://[DOMAIN]/api/states/sensor.smart_meter_electric_consumption_w
        method: GET
        headers:
          - Authorization: Bearer [REDACTED_TOKEN]
        insecure: true
        jq: .state|tonumber
        timeout: 2s
      - source: const
        value: 0
      - source: const
        value: 0

  - name: Solar
    type: custom
    power:
      source: http
      uri: https://[DOMAIN]/api/states/sensor.sum_pv_production
      method: GET
      headers:
        - Authorization: Bearer [REDACTED_TOKEN]
      insecure: true
      jq: .state|tonumber
      timeout: 2s

  - name: Battery
    type: custom
    power:
      source: http
      uri: https://[DOMAIN]/api/states/sensor.solarman_battery_1_power
      method: GET
      headers:
        - Authorization: Bearer [REDACTED_TOKEN]
      insecure: true
      jq: .state|tonumber * -1 
      timeout: 2s
    soc:
      source: http
      uri: https://[DOMAIN]/api/states/sensor.solarman_battery_1_soc
      method: GET
      headers:
        - Authorization: Bearer [REDACTED_TOKEN]
      insecure: true
      jq: .state|tonumber
      timeout: 2s

chargers:
  - name: Charger_1
    type: template
    template: twc3
    host: 192.168.1.xxx:9180

  - name: Charger_2
    type: template
    template: twc3
    host: 192.168.1.xxx:9080

interval: 60s

loadpoints:
  - title: Chargeur Car 1
    charger: Charger_1
    vehicle: car1
    mode: pv
    phases: 1
    mincurrent: 6
    maxcurrent: 32
    enable:
      threshold: -225
      delay: 1m
    disable:
      threshold: 200
      delay: 10m
    guardduration: 30m

  - title: Chargeur Car 2
    charger: Charger_2
    vehicle: car2
    mode: pv
    enable:
      threshold: -225
      delay: 1m
    disable:
      threshold: 200
      delay: 10m
    guardduration: 30m

vehicles:
  - name: car1
    type: custom
    icon: car
    capacity: 74
    chargeenable:
      source: mqtt
      topic: tesla_ble/[VIN_1]/charging
      payload: "{{if .chargeenable}}start{{else}}stop{{end}}"
    maxcurrent:
      source: mqtt
      topic: tesla_ble/[VIN_1]/charging-set-amps
      payload: "{{.maxcurrent}}"
    wakeup:
      source: mqtt
      topic: tesla_ble/[VIN_1]/command
      payload: "wake"
    soc:
      source: mqtt
      topic: teslamate/cars/2/battery_level
      timeout: 8h
    range:
      source: mqtt
      topic: teslamate/cars/2/est_battery_range_km
      timeout: 8h
    status:
      source: combined
      plugged:
        source: mqtt
        topic: teslamate/cars/2/plugged_in
        timeout: 8h
      charging:
        source: mqtt
        topic: teslamate/cars/2/charging_state
        timeout: 8h

  - name: car2
    type: custom
    icon: car
    capacity: 58
    chargeenable:
      source: mqtt
      topic: tesla_ble/[VIN_2]/charging
      payload: "{{if .chargeenable}}start{{else}}stop{{end}}"
    maxcurrent:
      source: mqtt
      topic: tesla_ble/[VIN_2]/charging-set-amps
      payload: "{{.maxcurrent}}"
    wakeup:
      source: mqtt
      topic: tesla_ble/[VIN_2]/command
      payload: "wake"
    soc:
      source: mqtt
      topic: teslamate/cars/1/battery_level
      timeout: 8h
    range:
      source: mqtt
      topic: teslamate/cars/1/est_battery_range_km
      timeout: 8h
    status:
      source: combined
      plugged:
        source: mqtt
        topic: teslamate/cars/1/plugged_in
        timeout: 8h
      charging:
        source: mqtt
        topic: teslamate/cars/1/charging_state
        timeout: 8h

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.1696
    zones:
      - days: Mo-So
        hours: 7-23
        price: 0.2146
  solar:
    type: template
    template: solcast
    site: [SOLCAST_SITE_ID]
    token: [SOLCAST_TOKEN]
    interval: 3h

messaging:
  services:
    - type: shout
      uri: generic://[DOMAIN]/api/webhook/[REDACTED_WEBHOOK_ID]?template=json

Log details

[site ] WARN 2026/02/01 16:49:37 vehicle 'car1' does not support automatic detection
[site ] WARN 2026/02/01 16:49:37 vehicle 'car2' does not support automatic detection
[site ] INFO 2026/02/01 16:49:37 site config:
[site ] INFO 2026/02/01 16:49:37 meters: grid βœ“ pv βœ“ battery βœ“
[site ] INFO 2026/02/01 16:49:37 grid: power βœ“ energy βœ— currents βœ“
[site ] INFO 2026/02/01 16:49:37 pv 1: power βœ“ energy βœ— currents βœ—
[site ] INFO 2026/02/01 16:49:37 battery 1: power βœ“ energy βœ— currents βœ— soc βœ“ capacity βœ—
[site ] INFO 2026/02/01 16:49:37 vehicles:
[site ] INFO 2026/02/01 16:49:37 vehicle 1: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—
[site ] INFO 2026/02/01 16:49:37 vehicle 2: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—
[site ] INFO 2026/02/01 16:49:37 tariffs:
[site ] INFO 2026/02/01 16:49:37 grid: priceforecast
[site ] INFO 2026/02/01 16:49:37 feed-in: βœ—
[site ] INFO 2026/02/01 16:49:37 co2: βœ—
[site ] INFO 2026/02/01 16:49:37 solar: βœ“
[lp-1 ] INFO 2026/02/01 16:49:37 loadpoint 1:
[lp-1 ] INFO 2026/02/01 16:49:37 mode: pv
[lp-1 ] INFO 2026/02/01 16:49:37 charger: power βœ“ energy βœ— currents βœ“ phases βœ— wakeup βœ—
[lp-1 ] INFO 2026/02/01 16:49:37 meters: charge βœ“
[lp-1 ] INFO 2026/02/01 16:49:37 charge: power βœ“ energy βœ— currents βœ“
[lp-2 ] INFO 2026/02/01 16:49:37 loadpoint 2:
[lp-2 ] INFO 2026/02/01 16:49:37 mode: pv
[lp-2 ] INFO 2026/02/01 16:49:37 charger: power βœ“ energy βœ— currents βœ“ phases βœ— wakeup βœ—
[lp-2 ] INFO 2026/02/01 16:49:37 meters: charge βœ“
[lp-2 ] INFO 2026/02/01 16:49:37 charge: power βœ“ energy βœ— currents βœ“
[site ] DEBUG 2026/02/01 16:49:37 set buffer soc: 90
[site ] DEBUG 2026/02/01 16:49:37 set buffer start soc: 90
[site ] DEBUG 2026/02/01 16:49:37 set priority soc: 90
[site ] DEBUG 2026/02/01 16:49:37 accumulated solar yield: restored [REDACTED]kWh forecasted
[site ] DEBUG 2026/02/01 16:49:37 solar forecast: scale 0.887
[lp-1 ] WARN 2026/02/01 16:49:37 ignoring deprecated phases: 1. please configure via UI
[lp-1 ] WARN 2026/02/01 16:49:37 ignoring deprecated minCurrent: 6.000000. please configure via UI
[lp-1 ] WARN 2026/02/01 16:49:37 ignoring deprecated maxCurrent: 32.000000. please configure via UI
[lp-1 ] WARN 2026/02/01 16:49:37 ignoring deprecated guardduration: 30m0s. please configure via UI
[lp-1 ] DEBUG 2026/02/01 16:49:37 phase timer inactive
[lp-1 ] DEBUG 2026/02/01 16:49:37 pv timer inactive
[lp-1 ] INFO 2026/02/01 16:49:37 vehicle updated: unknown -> car1
[lp-2 ] WARN 2026/02/01 16:49:37 ignoring deprecated guardduration: 30m0s. please configure via UI
[lp-2 ] DEBUG 2026/02/01 16:49:37 phase timer inactive
[lp-2 ] DEBUG 2026/02/01 16:49:37 pv timer inactive
[lp-2 ] INFO 2026/02/01 16:49:37 vehicle updated: unknown -> car2
[site ] DEBUG 2026/02/01 16:49:37 ----
[lp-2 ] DEBUG 2026/02/01 16:49:37 charge power: 0W
[lp-1 ] DEBUG 2026/02/01 16:49:37 charge power: 0W
[site ] DEBUG 2026/02/01 16:49:37 pv 1 power: 70W
[site ] DEBUG 2026/02/01 16:49:37 grid power: 530W
[site ] DEBUG 2026/02/01 16:49:37 battery 1 power: 0W
[site ] DEBUG 2026/02/01 16:49:37 battery 1 soc: 21%
[site ] DEBUG 2026/02/01 16:49:37 site power: 630W
[lp-1 ] DEBUG 2026/02/01 16:49:37 charger status: B
[lp-1 ] INFO 2026/02/01 16:49:37 car connected
[lp-1 ] DEBUG 2026/02/01 16:49:37 pv timer elapse
[lp-1 ] DEBUG 2026/02/01 16:49:41 set charge mode: now
[lp-1 ] ERROR 2026/02/01 16:49:41 set charge current limit 21A: vehicle not capable of current control

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

evcc 0.300.8

JNTNX433 avatar Feb 01 '26 15:02 JNTNX433

[site ] INFO 2026/02/01 16:49:37 vehicle 1: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—
[site ] INFO 2026/02/01 16:49:37 vehicle 2: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—

No capabilities.

type: custom

Not sure if this should be expected to work. Why not use UI config and TeslaBLE template?

You could also try:

evcc vehicle --log trace,db:error

for working and broken version.

andig avatar Feb 01 '26 16:02 andig

Argh. Fixed in a6f17db502a6098056e7a7016254cffcd87425f7.

andig avatar Feb 01 '26 16:02 andig

Hi, maybe iΒ΄ve got the same issue. The bug sems to be fixed. Still after a restart the log writes "ERROR 2026/02/24 06:54:16 creating vehicle E-Auto failed: cannot create vehicle type 'custom': cannot have current without current control"

In the GUI the vehicle is shown without errors.

JoernHei avatar Feb 24 '26 06:02 JoernHei

The error message is clear. Just remove your getMaxCurrent config or add maxcurrent.

andig avatar Feb 26 '26 14:02 andig

It worked! ThxAm 26.02.26, 15:01 schrieb andig @.***>: andig left a comment (evcc-io/evcc#27170) The error message is clear. Just remove your getMaxCurrent config or add maxcurrent.

β€”Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

JoernHei avatar Feb 26 '26 15:02 JoernHei