evcc icon indicating copy to clipboard operation
evcc copied to clipboard

evcc drains 12 v battery (Hyundai IONIQ 6)

Open JWartenberg opened this issue 1 year ago • 4 comments

Describe the bug

Environment: evcc 0.201.1 Wallbox easee Lite with current software Vehicle: Hyundai IONIQ6 The "Cache" parameter in the vehicle configuration is empty

Problem: The vehicle is currently permanently connected to the wallbox to capture the excess power from the PV system. evcc appears to query the vehicle status at 10-15 minute intervals when the charging cable is plugged in. This leads to a continuous discharge of the 12 V battery. In extreme cases (like yesterday), it can even become completely drained. The vehicle could only be started with a jump-start power bank. The problem does not occur when the vehicle is not connected via the charging cable. The battery data was determined using a battery monitor connected to the 12 V battery.

Potential solution: The vehicle status should only be queried when a charging session is pending/in progress. For example, when excess power is detected or a scheduled charge is imminent. I don't see any reason why the vehicle status should be queried when no charging session is pending.

Workaround: In my opinion, connecting the charging cable only for charging sessions is not a solution, as it would limit scheduled charging (I don't like getting up at 3:00 a.m. and plugging in the cable so the car is fully charged by 7:00 a.m. ;-) )

Steps to reproduce

...

Configuration details

sudo evcc --database /var/lib/evcc/evcc.db dump --cfg
[main  ] INFO 2025/03/24 07:14:24 evcc 0.201.1
[main  ] INFO 2025/03/24 07:14:24 using config file: /etc/evcc.yaml
[db    ] INFO 2025/03/24 07:14:24 using sqlite database: /var/lib/evcc/evcc.db
[lp-1  ] DEBUG 2025/03/24 07:14:27 set title: Garage
[lp-1  ] DEBUG 2025/03/24 07:14:27 set priority: 0
[lp-1  ] DEBUG 2025/03/24 07:14:27 set smart cost limit: <nil>
[lp-1  ] DEBUG 2025/03/24 07:14:27 set thresholds: {Enable:{Delay:1m0s Threshold:0} Disable:{Delay:3m0s Threshold:0}}
[lp-1  ] DEBUG 2025/03/24 07:14:27 set plan energy: 0kWh @ 0001-01-01 00:53:28 +0053 LMT
[lp-1  ] DEBUG 2025/03/24 07:14:27 set session energy limit: 0
[lp-1  ] DEBUG 2025/03/24 07:14:27 set session soc limit: 0
[lp-1  ] DEBUG 2025/03/24 07:14:27 set soc config: {Poll:{Mode:connected Interval:1h0m0s} Estimate:0x4000b60919}
[lp-1  ] DEBUG 2025/03/24 07:14:27 set default mode: pv
[lp-1  ] DEBUG 2025/03/24 07:14:27 set phases: 0
[lp-1  ] DEBUG 2025/03/24 07:14:27 set max current: 16
[lp-1  ] DEBUG 2025/03/24 07:14:27 charge total import: 2796.343kWh

Konfiguration (/etc/evcc.yaml):

# 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

# unique installation id
plant: *****

interval: 30s # control cycle interval

sponsortoken: *****

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false



site:
  title: WartenHome
  meters:
    grid: db:8
    pv:
    - db:9
    battery:
    - db:7

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.3269

  feedin:
    type: fixed
    price: 0.0799


Version: `0.201.1`

Log details

No log available for yesterday

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

0.201.1

JWartenberg avatar Mar 24 '25 06:03 JWartenberg

Then set the poll mode to the default charging https://docs.evcc.io/docs/reference/configuration/loadpoints#poll

StefanSchoof avatar Mar 24 '25 06:03 StefanSchoof

The vehicle status should only be queried when a charging session is pending/in progress

It is, unless you explicitly configure it otherwise.

andig avatar Mar 24 '25 06:03 andig

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 Mar 24 '25 06:03 andig

Poll mode was set to "connected", for whatever reason. Changed to "charging". Thanks a lot.

JWartenberg avatar Mar 24 '25 06:03 JWartenberg