evcc icon indicating copy to clipboard operation
evcc copied to clipboard

EVCC does not change back to default mode when switching to Guest Vehicle in the GUI

Open shodan65 opened this issue 2 years ago • 1 comments

Describe the bug

When I connect the defined vehicle physically to the wall box, evcc shows the connected car and switches to the defined mode (pv) When I disconnect the cable, evcc switches back to no car and the default mode off

When I switch to the predefined vehicle in the GUI, the mode changes to the defined mode (pv). When I switch back to the guest vehicle in GUI, evcc switches back to no car, BUT the mode remains pv

Connecting an unknown car (with the cable) later does not change the mode to off as well.

Wanted behavior In both cases, the mode should fall back to the load points default mode.

Steps to reproduce

  1. Switch to predefined car in the gui => mode changes to pv
  2. Switch to guest vehicle in the gui => mode stays pv

Configuration details

vehicles:
  - name: xxx
    title: xxx
    type: custom
    icon: car
    capacity: 15
    phases: 1
    onIdentify:
      mode: pv # enable PV-charging when vehicle is identified (minpv|now|off|pv)

loadpoints:
  - title: Garage
    charger: alfen
    mode: off
    phases: 1

Log details

[lp-1  ] DEBUG 2024/01/01 15:37:30 charge power: 0W
[site  ] DEBUG 2024/01/01 15:37:30 pv power: 286W
[site  ] DEBUG 2024/01/01 15:37:30 battery soc: 4%
[site  ] DEBUG 2024/01/01 15:37:30 battery power: 0W
[site  ] DEBUG 2024/01/01 15:37:30 grid power: 268W
[site  ] DEBUG 2024/01/01 15:37:30 site power: 418W
[lp-1  ] DEBUG 2024/01/01 15:37:31 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/01 15:37:31 charge total import: 19.486kWh
[lp-1  ] DEBUG 2024/01/01 15:37:31 charger status: A
[lp-1  ] INFO 2024/01/01 15:37:37 vehicle updated: unknown -> CLA 250e Shooting Brake
[lp-1  ] DEBUG 2024/01/01 15:37:37 set charge mode: pv
[site  ] DEBUG 2024/01/01 15:37:37 ----
[lp-1  ] DEBUG 2024/01/01 15:37:37 charge power: 0W
[site  ] DEBUG 2024/01/01 15:37:37 pv power: 294W
[site  ] DEBUG 2024/01/01 15:37:37 battery soc: 4%
[site  ] DEBUG 2024/01/01 15:37:37 battery power: 0W
[site  ] DEBUG 2024/01/01 15:37:37 grid power: 254W
[site  ] DEBUG 2024/01/01 15:37:37 site power: 404W
[lp-1  ] DEBUG 2024/01/01 15:37:37 vehicle odometer: 36169km
[lp-1  ] DEBUG 2024/01/01 15:37:37 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/01 15:37:37 charge total import: 19.486kWh
[lp-1  ] DEBUG 2024/01/01 15:37:37 charger status: A
[lp-1  ] DEBUG 2024/01/01 15:37:38 set cla plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[lp-1  ] INFO 2024/01/01 15:37:40 vehicle updated: CLA 250e Shooting Brake -> unknown

What type of operating system are you running?

Docker container

Version

evcc -v

shodan65 avatar Jan 01 '24 14:01 shodan65

Mode either depends on the vehicle if it implies a mode or default mode will be applied when vehicle is disconnected (not when switched).

andig avatar Jan 01 '24 14:01 andig