evcc icon indicating copy to clipboard operation
evcc copied to clipboard

SoC updates using polling do not work properly

Open Compiler11 opened this issue 1 year ago • 3 comments

Describe the bug

Ever since I switched to CarData the SoC of the car is not being updated while charging. As a workaround I have been trying to force SoC polls but have been unsuccessful. At least with the next settings I get 'next soc poll remaining time' messages in the logs: set loadpoint.soc.poll.mode to always, loadpoint.soc.poll.interval to 10m

But in the log, there is absolutely no indication that it actually retrieves the SoC from the CarData api.... And in my testing I have found 0 evidence that it actually updates the SoC. Only while playing with the SoC limit, disconnecting the car, etc, etc seems to actually do anything. This testing is driving me crazy!

Steps to reproduce

Problem 1: No polling 1.set loadpoint.soc.poll.mode to connected or charging 2.No 'next soc poll remaining time' in the log

Problem 2: polling but no data

  1. set loadpoint.soc.poll.mode to always
  2. 'next soc poll remaining time' messages in the log
  3. But, NO indication of actually retrieving data

Configuration details

log: debug
levels:
  cache: error
  lp-1: trace

loadpoints:
- title: Garage
  charger: wallbox
  mode: minpv
  vehicle: MyCar
  soc:
    poll:
      mode: always
      interval: 10m
    estimate: true

vehicles:
- name: MyCar
  type: template
  template: cardata

Log details

ONLY WHEN SET TO ALWAYS:
Nov 04 15:16:22 evcc evcc[23373]: [lp-1  ] DEBUG 2025/11/04 15:16:22 next soc poll remaining time: 9m35s
Nov 04 15:16:22 evcc evcc[23373]: [lp-1  ] DEBUG 2025/11/04 15:16:22 limitSoc reached: 89.0% > 80%

WHEN SET TO 'CHARGING' or CONNECTED:
[lp-1 ] INFO 2025/11/04 15:33:23 start charging ->
[lp-1 ] DEBUG 2025/11/04 15:33:23 wake-up timer: stop 
[lp-1 ] DEBUG 2025/11/04 15:34:23 charger status: C 
[lp-1 ] DEBUG 2025/11/04 15:34:23 vehicle soc: 88%

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

v0.209.6

Compiler11 avatar Nov 04 '25 15:11 Compiler11

The cardata API is a mqtt API that pushes updates. Polling is also possible but the number of calls are quite limited. The evcc integration offers two options:

Der PR liefert nun regelmäßige API-Updates alle 15min beim Laden wie bei anderen Fahrzeugen auch entsprechend Poll Mode. Wenn zusätzlich streaming aktiviert wird (advanced settings) dann werden eingehende Werte laufend aktualisiert. Dafür werden die zusätzlichen API Updates auf 30min reduziert um im 50 pro Tag Limit zu bleiben, erfolgen dafür aber unabhängig des Poll Modes immer.

See https://github.com/evcc-io/evcc/pull/24777 for more details.

mfuchs1984 avatar Nov 04 '25 21:11 mfuchs1984

But, NO indication of actually retrieving data

missing trace log

andig avatar Nov 05 '25 08:11 andig

I created a new trace log. It shows that at 20:20:53 the car SoC was still recorded as 69%. As a side note: my car app showed 100%. It also shows that at 20:21:53 the car SoC suddenly jumps to 100%. This is after a streaming data reception. I think this proves that there is no polling occuring, even though loadpoint.soc.poll.mode = charging and 15m. I think that the TRACE messages in the log also prove that this is a TRACE log. I think this also proves that the polls are simply not occuring. evcc-20251106-202355-trace.log

Compiler11 avatar Nov 06 '25 20:11 Compiler11