evcc icon indicating copy to clipboard operation
evcc copied to clipboard

EVCC restarts in wrong charging mode

Open makkie2002 opened this issue 1 year ago β€’ 1 comments

Describe the bug

Hi,

When EVCC restarts, it defaults to β€œFast” charging mode, even if the loadpoint is configured to start in β€œSolar” mode. This behavior is problematic when the system restarts automatically (e.g., due to a Docker image update overnight). In such cases, the connected vehicle begins charging immediately instead of waiting for sufficient solar power as intended.

Steps to reproduce

  1. Set loadpoint default mode to Solar
  2. Restart EVCC
  3. Check charge mode ...
Image

Configuration details

All configured via db

Log details

[main  ] INFO 2025/11/05 23:19:36 evcc 0.209.7
[main  ] INFO 2025/11/05 23:19:36 config file not found, database-only mode
[db    ] INFO 2025/11/05 23:19:36 using sqlite database: /root/.evcc/evcc.db
[mqtt  ] INFO 2025/11/05 23:19:36 connecting evcc at tcp://192.168.42.31:1883
[main  ] INFO 2025/11/05 23:19:36 UI listening at :7070
[mqtt  ] DEBUG 2025/11/05 23:19:36 tcp://192.168.42.31:1883 connected
[circuit-main] DEBUG 2025/11/05 23:19:37 validation of max phase current disabled
[circuit-garage] DEBUG 2025/11/05 23:19:37 validation of max power disabled
[lp-1  ] DEBUG 2025/11/05 23:19:37 set title: go-e
[lp-1  ] DEBUG 2025/11/05 23:19:37 set priority: 0
[lp-1  ] DEBUG 2025/11/05 23:19:37 set smart cost limit: <nil>
[lp-1  ] DEBUG 2025/11/05 23:19:37 set smart feed-in limit: <nil>
[lp-1  ] DEBUG 2025/11/05 23:19:37 set thresholds: {Enable:{Delay:3m0s Threshold:0} Disable:{Delay:20m0s Threshold:0}}
[lp-1  ] DEBUG 2025/11/05 23:19:37 set plan energy: 0kWh @ 0001-01-01 00:53:28 +0053 LMT
[lp-1  ] DEBUG 2025/11/05 23:19:37 set session energy limit: 0
[lp-1  ] DEBUG 2025/11/05 23:19:37 set session soc limit: 0
[lp-1  ] DEBUG 2025/11/05 23:19:37 set soc config: {Poll:{Mode:always Interval:1h0m0s} Estimate:0xc000d3db8c}
[lp-1  ] DEBUG 2025/11/05 23:19:37 set default mode: pv
[lp-1  ] DEBUG 2025/11/05 23:19:37 set phases: 1
[lp-1  ] DEBUG 2025/11/05 23:19:37 set min current: 6
[lp-1  ] DEBUG 2025/11/05 23:19:37 set max current: 32
[lp-1  ] DEBUG 2025/11/05 23:19:37 charge total import: 4642.811kWh
[site  ] INFO 2025/11/05 23:19:38 site config:
[site  ] INFO 2025/11/05 23:19:38   meters:      grid βœ“ pv βœ“ battery βœ“
[site  ] INFO 2025/11/05 23:19:38     grid:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2025/11/05 23:19:38     pv 1:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2025/11/05 23:19:38     battery 1: power βœ“ energy βœ— currents βœ— soc βœ“ capacity βœ“
[site  ] INFO 2025/11/05 23:19:38   vehicles:
[site  ] INFO 2025/11/05 23:19:38     vehicle 1: range βœ“ finish βœ— status βœ— climate βœ— wakeup βœ—
[site  ] INFO 2025/11/05 23:19:38   tariffs:
[site  ] INFO 2025/11/05 23:19:38     grid:      βœ—
[site  ] INFO 2025/11/05 23:19:38     feed-in:   βœ—
[site  ] INFO 2025/11/05 23:19:38     co2:       βœ—
[site  ] INFO 2025/11/05 23:19:38     solar:     βœ“
[lp-1  ] INFO 2025/11/05 23:19:38 loadpoint 1:
[lp-1  ] INFO 2025/11/05 23:19:38   mode:        now
[lp-1  ] INFO 2025/11/05 23:19:38   charger:     power βœ“ energy βœ“ currents βœ“ phases βœ“ wakeup βœ—
[lp-1  ] INFO 2025/11/05 23:19:38   meters:      charge βœ“
[lp-1  ] INFO 2025/11/05 23:19:38     charge:    power βœ“ energy βœ“ currents βœ“
[site  ] DEBUG 2025/11/05 23:19:38 set buffer soc: 80
[site  ] DEBUG 2025/11/05 23:19:38 set buffer start soc: 90
[site  ] DEBUG 2025/11/05 23:19:38 set priority soc: 30
[site  ] DEBUG 2025/11/05 23:19:38 set residual power: -2816
[lp-1  ] DEBUG 2025/11/05 23:19:38 phase timer inactive
[lp-1  ] DEBUG 2025/11/05 23:19:38 pv timer inactive
[lp-1  ] INFO 2025/11/05 23:19:38 vehicle updated: unknown -> iX3
+[lp-1  ] DEBUG 2025/11/05 23:19:38 set charge mode: now
[lp-1  ] WARN 2025/11/05 23:19:38 poll mode '{always 1h0m0s}' may deplete your battery or lead to API misuse. USE AT YOUR OWN RISK.
[site  ] WARN 2025/11/05 23:19:38 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site  ] DEBUG 2025/11/05 23:19:38 ----
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge power: 0W
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge currents: [0 0 0]A
[circuit-garage] DEBUG 2025/11/05 23:19:38 power: 29.602W
[circuit-garage] DEBUG 2025/11/05 23:19:38 current: 0.852A
[circuit-main] DEBUG 2025/11/05 23:19:38 power: 407.36W
[circuit-main] DEBUG 2025/11/05 23:19:38 current: 0A
[site  ] DEBUG 2025/11/05 23:19:38 ext 1 power: 30W
[site  ] DEBUG 2025/11/05 23:19:38 battery 1 power: 21W
[site  ] DEBUG 2025/11/05 23:19:38 battery 1 soc: 44%
[site  ] DEBUG 2025/11/05 23:19:38 grid power: 407W
[site  ] DEBUG 2025/11/05 23:19:38 pv 1 power: 1W
[site  ] DEBUG 2025/11/05 23:19:38 !! solar production: accumulate set db:7 10951.028kWh meter total (was: Accumulated: 0.000kWh updated: 0001-01-01 00:00:00 +0000 UTC)
[site  ] DEBUG 2025/11/05 23:19:38 !! solar production: accumulate moved db:7 from 0.000 to 0.000
[site  ] DEBUG 2025/11/05 23:19:38 site power: -2388W
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle odometer: 26622km
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge voltages: [226 114 56.4]V
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge total import: 4642.811kWh
[lp-1  ] DEBUG 2025/11/05 23:19:38 charger status: A
[lp-1  ] INFO 2025/11/05 23:19:38 car disconnected
+[lp-1  ] DEBUG 2025/11/05 23:19:38 set charge mode: pv
+[lp-1  ] DEBUG 2025/11/05 23:19:38 set charge mode: now
[lp-1  ] DEBUG 2025/11/05 23:19:38 set battery boost: false
[lp-1  ] DEBUG 2025/11/05 23:19:38 set session soc limit: 0
[lp-1  ] DEBUG 2025/11/05 23:19:38 set session energy limit: 0
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle soc: 81%
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle soc limit: 90%
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle range: 271km
[site  ] DEBUG 2025/11/05 23:19:38 ----
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge power: 0W
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge currents: [0 0 0]A
[circuit-garage] DEBUG 2025/11/05 23:19:38 power: 29.602W
[circuit-garage] DEBUG 2025/11/05 23:19:38 current: 0.852A
[circuit-main] DEBUG 2025/11/05 23:19:38 power: 407.36W
[circuit-main] DEBUG 2025/11/05 23:19:38 current: 0A
[site  ] DEBUG 2025/11/05 23:19:38 ext 1 power: 30W
[site  ] DEBUG 2025/11/05 23:19:38 battery 1 power: 21W
[site  ] DEBUG 2025/11/05 23:19:38 battery 1 soc: 44%
[site  ] DEBUG 2025/11/05 23:19:38 grid power: 407W
[site  ] DEBUG 2025/11/05 23:19:38 pv 1 power: 3W
[site  ] DEBUG 2025/11/05 23:19:38 !! solar production: accumulate set db:7 10951.028kWh meter total (was: Accumulated: 0.000kWh updated: 2025-11-05 23:19:38 +0100 CET meter: 10951.028kWh)
[site  ] DEBUG 2025/11/05 23:19:38 !! solar production: accumulate moved db:7 from 0.000 to 0.000
[site  ] DEBUG 2025/11/05 23:19:38 site power: -2388W
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle odometer: 26622km
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge voltages: [226 114 56.4]V
[lp-1  ] DEBUG 2025/11/05 23:19:38 charge total import: 4642.811kWh
[lp-1  ] DEBUG 2025/11/05 23:19:38 charger status: A
[lp-1  ] DEBUG 2025/11/05 23:19:38 soc estimated: 81.00% (vehicle: 81.00%)
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle soc: 81%
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle soc limit: 90%
[lp-1  ] DEBUG 2025/11/05 23:19:38 vehicle range: 271km
[site  ] DEBUG 2025/11/05 23:19:48 ----

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

Linux

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

No response

makkie2002 avatar Nov 05 '25 21:11 makkie2002

It is not a bug. I found that per vehicle you can also define the default charge behaviour.

makkie2002 avatar Nov 05 '25 22:11 makkie2002