evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Geladene Energie wird addiert bis eine neue EVCC Version installiert wird

Open Balou1986 opened this issue 1 year ago • 1 comments

Describe the bug

Hallo,

mir ist aufgefallen das bei meinen Elektro-Kleinfahrzeugen die Energie welche ich in diese Lade aufaddiert wird bis ich eine neue EVCC Version installiere.

Ich habe ins gesamt drei Tapo P-Series WiFi Steckdosen in der Garage über welche ich zwei E-Bikes und einen Elektro Roller (Silence S01) lade und an EVCC angebunden habe.

Mit ist heute, nachdem ich mir die Ladevorgänge angeguckt habe, aufgefallen das EVCC die geladene Energie addiert bis ich eine neue EVCC Version installiere.

Über EVCC werden die Ladepunkt zwischen den Ladevorgängen immer wieder auf "Aus" gestellt damit ich das verhalten was in dem folgenden Thread beschrieben wurde vermeide: https://github.com/evcc-io/evcc/discussions/22001

Screenshots und weitere Informationen hier: https://github.com/evcc-io/evcc/discussions/23989#discussioncomment-14565380

Steps to reproduce

  1. Ladepunkt anlegen mit einem Tapo P-Series Smart Plug als Wallbox 2.Generisches Fahrzeug anlegen mit einer gerigen Akkukapazität (z.B. 500Wh
  2. Fahrzeug über den Tapo-Ladepunkt und die UI im Modus "now" laden
  3. Ladepunkt über die UI in den Modus "off" schalten
  4. Ein paar Stunden warten
  5. Fahrzeug über den Tapo-Ladepunkt und die UI im Modus "now" laden
  6. Nach ein paar Minuten kann man sehen das die geladene Kapazität auf die der letzten LAdesession aufaddiert wird anstatt die Zählung von vorne zu beginnen.

Screenshots und weitere Informationen hier: https://github.com/evcc-io/evcc/discussions/23989#discussioncomment-14565380

Configuration details

Das gestalltet sich schwirig.
Ich bin im April 2025 von yaml auf db gewechselt.
Es funktioniert aktuell auch alles und das meiste habe ich über die UI auch schon einmal umkonfiguriert und auch Ladepunkte sowie Fahrzeuge hinzugefügt.

Leider reicht mein Wissen nicht für eine detailiertere Anaylse des Problems.

Wenn ich evcc dump --cfg ausführe bekomme ich folgende Meldung:
@raspberrypi:~ $ evcc dump --cfg
[main  ] INFO 2025/10/31 19:12:44 using config file: /etc/evcc.yaml
[main  ] FATAL 2025/10/31 19:12:44
Found systemd service database at "/var/lib/evcc/evcc.db", evcc has been invoked with no explicit database path.
Running the same config with multiple databases can lead to expiring vehicle tokens.

If you want to use the existing service database run the following command:

sudo evcc --database /var/lib/evcc/evcc.db

If you want to create a new user-space database run the following command:

evcc --database ~/.evcc/evcc.db

If you know what you're doing, you can skip the database check with the --ignore-db flag.




Wenn ich evcc dump --cfg --ignore-db ausführe bekomme ich folgende Meldung:

@raspberrypi:~ $ evcc dump --cfg --ignore-db
[main  ] INFO 2025/10/31 19:14:39 using config file: /etc/evcc.yaml
[db    ] INFO 2025/10/31 19:14:39 using sqlite database: /home/ralf/.evcc/evcc.d                 b

Version: `0.209.3`




Hier der Inhalt der 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: 10s # control cycle interval

#sponsortoken: 

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

#meters:
#- type: template
#  template: senec-home 
#  usage: grid  
#  host: 
#  schema: http
#  name: EnFluRi
#- type: template
#  template: senec-home 
#  usage: pv  
#  host: 
#  schema: http
#  name: Fronius_Symo_8_2
#- type: template
#  template: senec-home 
#  usage: battery  
#  host:  
#  schema: http
#  name: Senec_Home_V1_Li_10

#chargers:
#- type: template
#  template: go-e 
#  host: 
#  name: go-e_Home_fix
#- name: TP-Link_H110
#  type: template
#  template: tplink
#  host: # IP-Adresse oder Hostname
#  standbypower: 15 # Leistung oberhalb des angegebenen Wertes wird als Ladeleistung gewertet (Optional)
#  integrateddevice: true 
#  icon: bike
#- name: Tapo_P110_1
#  type: template
#  template: tapo
#  host:  # IP-Adresse oder Hostname
#  user:  # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
#  password:  # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
#  standbypower: 15 # Leistung oberhalb des angegebenen Wertes wird als Ladeleistung gewertet (optional)
#  integrateddevice: true 
#  icon: bike

#loadpoints:
#- title: go e charger
#  charger: go-e_Home_fix
#  vehicle: VW_e-UP
#  mode: off
#  phases: 0
#  mincurrent: 6
#  maxcurrent: 16
#  resetOnDisconnect: true
#  priority: 3
#- title: Giant E-Bikes
#  charger: TP-Link_H110
#  mode: off
#  phases: 1
#  mincurrent: 1
#  maxcurrent: 2
#  resetOnDisconnect: true
#  priority: 1
#- title: Bosch E-Bike
#  charger: Tapo_P110_1
# mode: now
#  phases: 1
#  mincurrent: 1
#  maxcurrent: 2
#  resetOnDisconnect: true
#  priority: 2

#site:
#  title: Teck46
#  meters:
#    grid: EnFluRi
#    pv:
#    - Fronius_Symo_8_2
#    battery:
#    - Senec_Home_V1_Li_10
#  prioritySoc: 80 # Hausbatterie bekommt bis zum Soc 80% Priorität beim laden
#  bufferSoc: 90 # Hausbatterie wird oberhalb Soc 90% als Puffer genutzt

#tariffs:
#  currency: EUR # (default EUR)
#  grid:
    # static grid price
#    type: fixed
#    price: 0.329 # [currency]/kWh

#  feedin:
    # rate for feeding excess (pv) energy to the grid
#    type: fixed
#    price: 0.12 # [currency]/kWh

#  co2:
#    type: grünstromindex
#    zip: 33428

#vehicles:
#  - name: VW_e-UP
#    type: template
#    template: offline
#    title: VW e-UP! # Wird in der Benutzeroberfläche angezeigt (Optional)
#    capacity: 32 # Akkukapazität in kWh (Optional)
#    phases: 2

Log details

Sep 20 15:08:33 raspberrypi evcc[1239]: [lp-4  ] INFO 2025/09/20 15:08:33 stop charging <-
Sep 20 17:37:23 raspberrypi evcc[1239]: [lp-3  ] INFO 2025/09/20 17:37:23 car connected
Sep 20 17:38:03 raspberrypi evcc[1239]: [lp-3  ] INFO 2025/09/20 17:38:03 start charging ->
Sep 20 18:23:37 raspberrypi evcc[1239]: [site  ] ERROR 2025/09/20 18:23:37 battery 1 soc: Post "http://192.168.178.116/lala.cgi": dial tcp 192.168.178.116:80: i/o timeout
Sep 20 19:42:04 raspberrypi evcc[1239]: [lp-3  ] INFO 2025/09/20 19:42:04 stop charging <-
Sep 20 20:00:42 raspberrypi evcc[1239]: [lp-1  ] ERROR 2025/09/20 20:00:42 charge power: Get "http://192.168.178.237/api/status?filter=alw,car,eto,nrg,wh,trx,cards": dial tcp 192.168.178.237:80: i/o timeout

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

evcc version 0.209.3

Balou1986 avatar Oct 31 '25 18:10 Balou1986

Steps to reproduce

Nichts davon ist im Log zu sehen :/

andig avatar Oct 31 '25 18:10 andig