evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Welcome Charge is triggered repeatingly

Open bokomoso opened this issue 1 year ago β€’ 8 comments

Describe the bug

The welcome charge for a vehicle starts, stops when timer is running out the welcome charge starts again. It's like an endless loop. I noticed this behavior after an update to EVCC 0.209.6.

Steps to reproduce

Initial situation: The vehicle (VW ID.3) is connected to the wallbox (Keba). EVCC is in PV mode. The vehicle had already been charging, PV charging was suspended what is O.K. so far. The criterias for PV charging are not met due to battery level and PV production. EVCC was updated to 0.209.6.

I restarted HA and EVCC for another reason.

  1. EVCC starts Welcome Charge (why? – the vehicle has already charged before and was not disconnected in the meantime).

  2. The Welcome Charge timer is running out and the charging process stops.

  3. Shortly afterwards, EVCC starts another Welcome Charge. Steps 1-3 repeat.

  4. When switching the mode from β€˜PV’ to β€˜off’, EVCC still jumps back into Welcome Charge mode. Points 1-3 repeat. EVCC should actually stop the charging process completely.

  5. I disconnected the vehicle from the wallbox and reconnected it a short time later. EVCC starts in PV mode. The Welcome Charge starts (this time it's correct). But then the loop of steps 1-3 repeats.

  6. I restarted just the EVCC add-on. Again loops of steps 1-3.

Configuration details

chargers:
  - name: my_charger01
    type: template
    template: keba-modbus
    
    # Modbus TCP
    modbus: tcpip
    id: 255
    host: xxx.xxx.xxx.xxx
    port: 502
    welcomecharge: true

Log details

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

0.209.6

bokomoso avatar Nov 01 '25 16:11 bokomoso

No welcomecharge visible at all in the logs. What are your enable and disable threshold settings?

mfuchs1984 avatar Nov 01 '25 16:11 mfuchs1984

The reason for my interpretation it's the "welcome charge" is the fact that the handshake icon is showing up in the ui each time after the timer runs up.

Image Image

Maybe that part of the initial log helps:

[main ] INFO 2025/11/01 15:03:58 evcc 0.209.6 [main ] INFO 2025/11/01 15:03:58 using config file: /config/evcc.yaml [db ] INFO 2025/11/01 15:03:58 using sqlite database: /data/evcc.db [mqtt ] INFO 2025/11/01 15:03:58 connecting evcc-2058127305 at tcp://xxx.xxx.xxx.xxx:1883 [main ] INFO 2025/11/01 15:03:58 UI listening at :7070 [mqtt ] DEBUG 2025/11/01 15:03:58 tcp://xxx.xxx.xxx.xxx:1883 connected [tariff] DEBUG 2025/11/01 15:04:01 using cache: grΓΌnstromindex-209e60c3dfdd60dd17bd2632bf8f3b5a6197569af96d2b15a9211ccf60ea4ab6 (start: 2025-10-31 23:00:00 +0100 CET, end: 2025-11-05 00:00:00 +0100 CET) [lp-1 ] DEBUG 2025/11/01 15:04:01 charge total import: 4448.185kWh [site ] INFO 2025/11/01 15:04:02 site config: [site ] INFO 2025/11/01 15:04:02 meters: grid βœ“ pv βœ“ battery βœ“ [site ] INFO 2025/11/01 15:04:02 grid: power βœ“ energy βœ— currents βœ— [site ] INFO 2025/11/01 15:04:02 pv 1: power βœ“ energy βœ— currents βœ— [site ] INFO 2025/11/01 15:04:02 battery 1: power βœ“ energy βœ— currents βœ— soc βœ“ capacity βœ— [site ] INFO 2025/11/01 15:04:02 vehicles: [site ] INFO 2025/11/01 15:04:02 vehicle 1: range βœ“ finish βœ“ status βœ“ climate βœ“ wakeup βœ— [site ] INFO 2025/11/01 15:04:02 vehicle 2: range βœ“ finish βœ“ status βœ“ climate βœ“ wakeup βœ“ [site ] INFO 2025/11/01 15:04:02 tariffs: [site ] INFO 2025/11/01 15:04:02 grid: pricestatic [site ] INFO 2025/11/01 15:04:02 feed-in: pricestatic [site ] INFO 2025/11/01 15:04:02 co2: βœ“ [site ] INFO 2025/11/01 15:04:02 solar: βœ“ [lp-1 ] INFO 2025/11/01 15:04:02 loadpoint 1: [lp-1 ] INFO 2025/11/01 15:04:02 mode: pv [lp-1 ] INFO 2025/11/01 15:04:02 charger: power βœ“ energy βœ“ currents βœ“ phases βœ“ wakeup βœ— [lp-1 ] INFO 2025/11/01 15:04:02 meters: charge βœ“ [lp-1 ] INFO 2025/11/01 15:04:02 charge: power βœ“ energy βœ“ currents βœ“ [site ] DEBUG 2025/11/01 15:04:02 set buffer soc: 95 [site ] DEBUG 2025/11/01 15:04:02 set priority soc: 95 [site ] DEBUG 2025/11/01 15:04:02 accumulated solar yield: restored 2302.175kWh forecasted, map[pv:{clock: updated:{wall:0 ext:0 loc:} meter: Accumulated:6552.324795350821}] produced [site ] DEBUG 2025/11/01 15:04:02 solar forecast: accumulated 0.021Wh from 0001-01-01 00:00:00 +0000 UTC to 2025-11-01 15:04:02 +0100 CET [site ] DEBUG 2025/11/01 15:04:02 solar forecast: produced 6552.325 [site ] DEBUG 2025/11/01 15:04:02 solar forecast: accumulated 2302.175kWh, produced 6552.325kWh, scale 2.846 [lp-1 ] DEBUG 2025/11/01 15:04:02 phase timer inactive [lp-1 ] DEBUG 2025/11/01 15:04:02 pv timer inactive [site ] DEBUG 2025/11/01 15:04:02 ---- [lp-1 ] DEBUG 2025/11/01 15:04:02 charge power: 0W [lp-1 ] DEBUG 2025/11/01 15:04:02 charge currents: [0 0 0]A [site ] DEBUG 2025/11/01 15:04:03 grid power: -6W [site ] DEBUG 2025/11/01 15:04:03 battery 1 power: -124W [site ] DEBUG 2025/11/01 15:04:03 battery 1 soc: 24% [site ] DEBUG 2025/11/01 15:04:03 pv 1 power: 593W [site ] DEBUG 2025/11/01 15:04:03 !! solar production: accumulate add pv 0.000W power (was: Accumulated: 6552.325kWh updated: 0001-01-01 00:00:00 +0000 UTC) [site ] DEBUG 2025/11/01 15:04:03 !! solar production: accumulate moved pv from 6552.325 to 6552.325 [site ] DEBUG 2025/11/01 15:04:03 battery has priority at soc 24% (< 95%) [site ] DEBUG 2025/11/01 15:04:03 site power: 94W [lp-1 ] DEBUG 2025/11/01 15:04:03 charge total import: 4448.185kWh [lp-1 ] DEBUG 2025/11/01 15:04:03 charger status: B [lp-1 ] DEBUG 2025/11/01 15:04:03 charge start energy: 4448.185kWh [lp-1 ] INFO 2025/11/01 15:04:03 car connected [lp-1 ] DEBUG 2025/11/01 15:04:03 vehicle api refresh [lp-1 ] DEBUG 2025/11/01 15:04:03 pv timer elapse [lp-1 ] DEBUG 2025/11/01 15:04:03 pv timer inactive [lp-1 ] DEBUG 2025/11/01 15:04:03 charge total import: 4448.185kWh [lp-1 ] DEBUG 2025/11/01 15:04:03 charger vehicle id: 04293432

bokomoso avatar Nov 01 '25 17:11 bokomoso

I see, seems like evcc only logs the welcomecharge event when the vehicle is the cause, while in yours, it's the charger. Nevertheless, the code is quite clear, it happens only directly after a vehicle connects.

Again: What are your enable and disable threshold settings?

mfuchs1984 avatar Nov 01 '25 19:11 mfuchs1984

Hi

Today I noticed the same issue on my site. Iβ€˜m using a go-e Gemini flex and a Cupra Tavascan. Sadly I cant provide any logs at the moment. Here you can see the charing power. It does a welcome charge, then stops and starts again. I will provide logs as soon as possible

Image

Vogelbecker avatar Nov 01 '25 19:11 Vogelbecker

I will provide logs as soon as possible

Good, they should show the welcomecharge logging lines in case.

mfuchs1984 avatar Nov 01 '25 19:11 mfuchs1984

Again: What are your enable and disable threshold settings?

If you're asking about the optional parameters for loadpoint in evcc.yaml - I haven't them included and I never had. However the reported behaviour of EVCC is happening for the very first time.

This is the loadpoint section in my evcc.yaml:

loadpoints:
  - title: Carport # display name for UI
    charger: my_charger01 # charger reference
    mode: pv # charge mode (off, now, minpv, pv)

Since my vehicles and the wallbox only charge starting from 1400 W, I saw no reason to set a value for the enable threshold. Charging should begin immediately when this PV surplus is available. However, the value of 1400 W was not reached, yet the charging process was repeatedly started. And welcome charge should only take place one time when connecting the vehicle to the wallbox.

bokomoso avatar Nov 01 '25 20:11 bokomoso

Thanks, then let's wait for more logs and dig deeper

mfuchs1984 avatar Nov 01 '25 20:11 mfuchs1984

Reason is known, see https://github.com/evcc-io/evcc/pull/24730#issuecomment-3476087306

mfuchs1984 avatar Nov 01 '25 21:11 mfuchs1984