evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Default charging mode doesn't remain in last setting, switches after car connection to minimum+PV

Open StefanA-LU opened this issue 1 month ago β€’ 2 comments

Describe the bug

Nevertheless which default charging option is set, in case of connecting the car to the wallbox (DaheimLaden), the charging mode switches to "minimum + PV" and starts charging by accident, if it isn't stopped manually by reconfiguring the charging mode to wanted setting.

Steps to reproduce

  1. set charging mode to OFF
  2. connect the car with wallbox and for DaheimLaden push the button to enable charging without code-card
  3. check the website and the setting switched to "minimum + PV" and starts charging ...

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# database configuration for persisting charge sessions and settings
database:
  type: sqlite
  dsn: D:\ServerFolders\Dateien\EVCC\evcc.db

# unique installation id
plant: xxxxxxxxxx

interval: 30s # control cycle interval

meters:
- type: template
  template: e3dc-rscp
  usage: grid
  host: 10.0.0.30
  port: 5033
  user: xxxxxxxxxx
  password: xxxxxxxxxx
  key: xxxxxxxxxx
  name: grid1

site:
  title: Haus
  meters:
    grid: grid1

#loadpoints:
#- title: Garage # display name for UI
#  charger: Ladestation # charger

#chargers:
#- name: Ladestation
#  type: template
#  template: daheimladen-mb
#  host: 10.0.0.66 # IP-Adresse oder Hostname
#  port: 502 # Port, optional

Log details

Currently not available. Must reproduce it to catch log entries.

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

Windows

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 version 0.317.2

StefanA-LU avatar Oct 21 '26 04:10 StefanA-LU

Thanks for the report. The mode is only reset to the loadpoint's default mode on disconnect (defaultMode() in core/loadpoint.go), and nothing in the connect handler changes it. So I can't yet tell what switches it to "minimum + PV".

The loadpoints: and chargers: sections in your pasted YAML are commented out, so the loadpoint is presumably configured via the UI. To narrow this down, could you provide:

  • the loadpoint settings from the UI (default mode, any vehicle/"always charge" or plan settings), and the charger/loadpoint config as shown in the UI under Configuration
  • a debug log (log: debug, ideally with levels: charger: trace for the DaheimLaden) covering the moment you plug in and press the button, including the mode change
  • whether the mode really changes in the UI or only the charger starts (the wallbox's own button can start charging independently of evcc)

Related: #33436 (DaheimLaden starting to charge on plug-in despite disabled loadpoint), possibly the same charger-side autostart behavior.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Oct 21 '26 04:10 github-actions[bot]

Unfortunately your report is missing a detailed log file. Without log, we donβ€˜t have the information for diagnosing the issue described. See https://docs.evcc.io/docs/faq#wie-kann-ich-ein-logfile-zur-fehleranalyse-erstellen.

andig avatar Oct 21 '26 06:10 andig