evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.31k stars 605 forks source link

Keba-Modbus: Session not updated correctly in UI #8179

Closed Duell10111 closed 1 year ago

Duell10111 commented 1 year ago

Describe the bug

Somehow the charging session is not updated in the UI, whereas the debug commands shows that evcc knows the correctly charged kWh. Therefore the reading of the value from the WB seems to work.

UI:

image

evcc charger command:

[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 01 00 00 00 06 ff 03 03 f8 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 01 00 00 00 07 ff 03 04 00 04 ca a5
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 02 00 00 00 06 ff 03 06 0e 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 02 00 00 00 07 ff 03 04 00 00 00 00
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 03 00 00 00 06 ff 03 03 fc 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 03 00 00 00 07 ff 03 04 00 53 2e 3d
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 04 00 00 00 06 ff 03 04 0c 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 04 00 00 00 07 ff 03 04 02 3c ec 23
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 05 00 00 00 06 ff 03 03 f0 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 05 00 00 00 07 ff 03 04 00 00 1f 65
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 06 00 00 00 06 ff 03 03 f2 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 06 00 00 00 07 ff 03 04 00 00 1f 8b
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 07 00 00 00 06 ff 03 03 f4 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 07 00 00 00 07 ff 03 04 00 00 1f 75
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 08 00 00 00 06 ff 03 03 ec 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 08 00 00 00 07 ff 03 04 00 00 00 07
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 09 00 00 00 06 ff 03 03 e8 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 09 00 00 00 07 ff 03 04 00 00 00 03
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0a 00 00 00 06 ff 03 03 e8 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0a 00 00 00 07 ff 03 04 00 00 00 03
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0b 00 00 00 06 ff 03 05 de 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0b 00 00 00 07 ff 03 04 00 00 72 c1
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0c 00 00 00 06 ff 03 05 dc 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0c 00 00 00 07 ff 03 04 00 00 00 00
Power:          5451W
Energy:         3754.7kWh
Current L1..L3: 8.04A 8.07A 8.05A
Charge status:  C
Enabled:        true
Charged:        2.9kWh
Identifier:     <none>
Diagnostic dump:
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0d 00 00 00 06 ff 03 03 f6 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0d 00 00 00 07 ff 03 04 01 66 2e 57
        Serial: 23473751
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0e 00 00 00 06 ff 03 03 fa 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0e 00 00 00 07 ff 03 04 03 0a 2a 00
        Firmware:       3.10.42
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 0f 00 00 00 06 ff 03 03 f8 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 0f 00 00 00 07 ff 03 04 00 04 ca a5
        Product:        314021
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 10 00 00 00 06 ff 03 06 0e 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 10 00 00 00 07 ff 03 04 00 00 00 00
        Phases source:  0
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 11 00 00 00 06 ff 03 06 10 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 11 00 00 00 07 ff 03 04 00 00 00 00
        Phases state:   0
[keba  ] TRACE 2023/05/26 13:26:46 modbus: send 00 12 00 00 00 06 ff 03 06 42 00 02
[keba  ] TRACE 2023/05/26 13:26:46 modbus: recv 00 12 00 00 00 07 ff 03 04 00 00 00 00
        Failsafe timeout:       0s

WB UI:

image

Steps to reproduce

  1. Charge first vehicle
  2. Unplug first vehicle and plug in new vehicle
  3. Start charging with second vehicle

Configuration details

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

log: debug
levels:
  cache: error

sponsortoken: CENSORED

interval: 10s # control cycle interval

meters:
- type: template
  template: solaredge-hybrid 
  usage: grid  
  host: 192.168.178.10  
  port: 1502  
  timeout: 10s  
  name: grid1
  modbus: tcpip
  id: 1
- type: template
  template: solaredge-hybrid 
  usage: pv  
  host: 192.168.178.10  
  port: 1502  
  timeout: 10s  
  name: pv2
  modbus: tcpip
  id: 1
- type: template
  template: solaredge-hybrid 
  usage: battery  
  host: 192.168.178.10
  port: 1502  
  timeout: 10s  
  name: battery3
  modbus: tcpip
  id: 1

chargers:
  - name: keba
    type: template
    template: keba-modbus 

    # Modbus TCP
    modbus: tcpip
    id: 255
    host: 192.168.178.79
    port: 502 # Port 
#  - name: wb
#    type: template
#    template: ocpp 
#    idtag: f5eh6qml76xasy5ec82p
#    stationid: 99002061

vehicles:
- name: Tesla_Model_3_P
  type: template
  template: tesla
  title: Konstantins Tesla
  accessToken: ****
  refreshToken: ****
  vin: ****
  #capacity: 81 # Akku-Kapazität in kWh # Optional 
- name: Tesla_Model_Y_LR
  type: template
  template: tesla
  title: Papas Tesla
  accessToken: ****
  refreshToken: ****
  vin: ****
  #capacity: 81 # Akku-Kapazität in kWh # Optional 

loadpoints:
- title: Garage
  charger: keba
  mode: now
  phases: 3
  mincurrent: 5
  maxcurrent: 16
  resetOnDisconnect: true
  disable:
    threshold: 200 # maximum import power (W)
    delay: 10m

site:
  title: Mein Zuhause
  meters:
    grid: grid1
    pvs:
    - pv2
    batteries:
    - battery3
  bufferSoC: 85
  prioritySoC: 50
  maxGridSupplyWhileBatteryCharging: 200
  residualPower: 50

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

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

Log details

[site  ] DEBUG 2023/05/26 12:51:18 ----
[lp-1  ] DEBUG 2023/05/26 12:51:18 charge power: 0W
[site  ] DEBUG 2023/05/26 12:51:18 pv power: 9170W
[site  ] DEBUG 2023/05/26 12:51:18 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:51:18 battery power: 0W
[site  ] DEBUG 2023/05/26 12:51:18 grid power: -5464W
[site  ] DEBUG 2023/05/26 12:51:18 site power: -5414W
[lp-1  ] DEBUG 2023/05/26 12:51:18 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:51:18 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:51:18 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:51:18 pv charge current: 7.85A = 0A + 7.85A (-5414W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:51:18 max charge current: 7.85A
[site  ] DEBUG 2023/05/26 12:51:28 ----
[lp-1  ] DEBUG 2023/05/26 12:51:28 charge power: 0W
[site  ] DEBUG 2023/05/26 12:51:28 pv power: 9060W
[site  ] DEBUG 2023/05/26 12:51:28 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:51:28 battery power: 0W
[site  ] DEBUG 2023/05/26 12:51:28 grid power: -6388W
[site  ] DEBUG 2023/05/26 12:51:28 site power: -6338W
[lp-1  ] DEBUG 2023/05/26 12:51:28 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:51:28 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:51:28 charger status: A
[lp-1  ] INFO 2023/05/26 12:51:28 car disconnected
[lp-1  ] DEBUG 2023/05/26 12:51:28 set charge mode: pv
[lp-1  ] DEBUG 2023/05/26 12:51:28 set min current: 6
[lp-1  ] DEBUG 2023/05/26 12:51:28 set max current: 16
[lp-1  ] DEBUG 2023/05/26 12:51:28 set min soc: 0
[lp-1  ] DEBUG 2023/05/26 12:51:28 set target soc: 100
[lp-1  ] DEBUG 2023/05/26 12:51:28 charger disable
[lp-1  ] DEBUG 2023/05/26 12:51:28 wake-up timer: stop
[site  ] DEBUG 2023/05/26 12:51:38 ----
[lp-1  ] DEBUG 2023/05/26 12:51:38 charge power: 0W
[site  ] DEBUG 2023/05/26 12:51:38 pv power: 9151W
[site  ] DEBUG 2023/05/26 12:51:38 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:51:38 battery power: 0W
[site  ] DEBUG 2023/05/26 12:51:38 grid power: -3888W
[site  ] DEBUG 2023/05/26 12:51:38 site power: -3838W
[lp-1  ] DEBUG 2023/05/26 12:51:38 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:51:38 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:51:38 charger status: B
[lp-1  ] INFO 2023/05/26 12:51:38 car connected
[lp-1  ] DEBUG 2023/05/26 12:51:38 vehicle api refresh
[lp-1  ] DEBUG 2023/05/26 12:51:38 pv timer elapse
[lp-1  ] DEBUG 2023/05/26 12:51:38 pv timer inactive
[lp-1  ] DEBUG 2023/05/26 12:51:38 charger: guard elapse
[lp-1  ] DEBUG 2023/05/26 12:51:38 guard timer inactive
[lp-1  ] DEBUG 2023/05/26 12:51:38 charge meter total import: 3751.767kWh
[main  ] DEBUG 2023/05/26 12:51:39 vehicle status: B (Konstantins Tesla)
[main  ] DEBUG 2023/05/26 12:51:40 vehicle status: A (Papas Tesla)
[lp-1  ] INFO 2023/05/26 12:51:40 vehicle updated: unknown -> Konstantins Tesla
[lp-1  ] DEBUG 2023/05/26 12:51:40 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:51:40 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:51:40 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:51:40 pv charge current: 5.56A = 0A + 5.56A (-3838W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:51:40 pv enable timer reset
[lp-1  ] DEBUG 2023/05/26 12:51:40 pv timer inactive
[site  ] DEBUG 2023/05/26 12:51:48 ----
[lp-1  ] DEBUG 2023/05/26 12:51:48 charge power: 0W
[site  ] DEBUG 2023/05/26 12:51:48 pv power: 9147W
[site  ] DEBUG 2023/05/26 12:51:48 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:51:48 battery power: 0W
[site  ] DEBUG 2023/05/26 12:51:48 grid power: -6386W
[site  ] DEBUG 2023/05/26 12:51:48 site power: -6336W
[lp-1  ] DEBUG 2023/05/26 12:51:48 vehicle odometer: 6088km
[lp-1  ] DEBUG 2023/05/26 12:51:48 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:51:48 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:51:48 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:51:48 pv charge current: 9.18A = 0A + 9.18A (-6336W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:51:48 site power -6336W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:51:48 pv enable timer start: 1m0s
[lp-1  ] DEBUG 2023/05/26 12:51:48 pv enable in 1m0s
[site  ] DEBUG 2023/05/26 12:51:58 ----
[lp-1  ] DEBUG 2023/05/26 12:51:58 charge power: 0W
[site  ] DEBUG 2023/05/26 12:51:58 pv power: 9142W
[site  ] DEBUG 2023/05/26 12:51:58 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:51:58 battery power: 0W
[site  ] DEBUG 2023/05/26 12:51:58 grid power: -5329W
[site  ] DEBUG 2023/05/26 12:51:58 site power: -5279W
[lp-1  ] DEBUG 2023/05/26 12:51:58 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:51:58 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:51:58 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:51:58 pv charge current: 7.65A = 0A + 7.65A (-5279W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:51:58 site power -5279W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:51:58 pv enable in 50s
[lp-1  ] DEBUG 2023/05/26 12:51:58 pv enable timer remaining: 50s
[site  ] DEBUG 2023/05/26 12:52:08 ----
[lp-1  ] DEBUG 2023/05/26 12:52:08 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:08 pv power: 9144W
[site  ] DEBUG 2023/05/26 12:52:08 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:08 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:08 grid power: -5321W
[site  ] DEBUG 2023/05/26 12:52:08 site power: -5271W
[lp-1  ] DEBUG 2023/05/26 12:52:08 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:08 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:08 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:08 pv charge current: 7.64A = 0A + 7.64A (-5271W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:08 site power -5271W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:52:08 pv enable in 40s
[lp-1  ] DEBUG 2023/05/26 12:52:08 pv enable timer remaining: 40s
[site  ] DEBUG 2023/05/26 12:52:18 ----
[lp-1  ] DEBUG 2023/05/26 12:52:18 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:18 pv power: 9150W
[site  ] DEBUG 2023/05/26 12:52:18 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:18 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:18 grid power: -7827W
[site  ] DEBUG 2023/05/26 12:52:18 site power: -7777W
[lp-1  ] DEBUG 2023/05/26 12:52:18 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:18 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:18 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:18 pv charge current: 11.3A = 0A + 11.3A (-7777W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:18 site power -7777W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:52:18 pv enable in 30s
[lp-1  ] DEBUG 2023/05/26 12:52:18 pv enable timer remaining: 30s
[site  ] DEBUG 2023/05/26 12:52:28 ----
[lp-1  ] DEBUG 2023/05/26 12:52:28 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:28 pv power: 9137W
[site  ] DEBUG 2023/05/26 12:52:28 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:28 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:28 grid power: -6363W
[site  ] DEBUG 2023/05/26 12:52:28 site power: -6313W
[lp-1  ] DEBUG 2023/05/26 12:52:28 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:28 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:28 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:28 pv charge current: 9.15A = 0A + 9.15A (-6313W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:28 site power -6313W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:52:28 pv enable in 20s
[lp-1  ] DEBUG 2023/05/26 12:52:28 pv enable timer remaining: 20s
[site  ] DEBUG 2023/05/26 12:52:38 ----
[lp-1  ] DEBUG 2023/05/26 12:52:38 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:38 pv power: 9145W
[site  ] DEBUG 2023/05/26 12:52:38 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:38 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:38 grid power: -6341W
[site  ] DEBUG 2023/05/26 12:52:38 site power: -6291W
[lp-1  ] DEBUG 2023/05/26 12:52:38 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:38 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:38 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:38 pv charge current: 9.12A = 0A + 9.12A (-6291W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:38 site power -6291W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:52:38 pv enable in 10s
[lp-1  ] DEBUG 2023/05/26 12:52:38 pv enable timer remaining: 10s
[site  ] DEBUG 2023/05/26 12:52:48 ----
[lp-1  ] DEBUG 2023/05/26 12:52:48 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:48 pv power: 9143W
[site  ] DEBUG 2023/05/26 12:52:48 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:48 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:48 grid power: -5300W
[site  ] DEBUG 2023/05/26 12:52:48 site power: -5250W
[lp-1  ] DEBUG 2023/05/26 12:52:48 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:48 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:48 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:48 pv charge current: 7.61A = 0A + 7.61A (-5250W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:48 site power -5250W <= 0W enable threshold
[lp-1  ] DEBUG 2023/05/26 12:52:48 pv enable in 0s
[lp-1  ] DEBUG 2023/05/26 12:52:48 pv enable timer elapsed
[lp-1  ] DEBUG 2023/05/26 12:52:48 max charge current: 6A
[lp-1  ] DEBUG 2023/05/26 12:52:48 charger enable
[lp-1  ] DEBUG 2023/05/26 12:52:48 wake-up timer: start
[site  ] DEBUG 2023/05/26 12:52:58 ----
[lp-1  ] DEBUG 2023/05/26 12:52:58 charge power: 0W
[site  ] DEBUG 2023/05/26 12:52:58 pv power: 9134W
[site  ] DEBUG 2023/05/26 12:52:58 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:52:58 battery power: 0W
[site  ] DEBUG 2023/05/26 12:52:58 grid power: -5361W
[site  ] DEBUG 2023/05/26 12:52:58 site power: -5311W
[lp-1  ] DEBUG 2023/05/26 12:52:58 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/26 12:52:58 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:52:58 charger status: B
[lp-1  ] DEBUG 2023/05/26 12:52:58 pv charge current: 7.7A = 0A + 7.7A (-5311W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:52:58 pv timer reset
[lp-1  ] DEBUG 2023/05/26 12:52:58 pv timer inactive
[lp-1  ] DEBUG 2023/05/26 12:52:58 max charge current: 7.7A
[site  ] DEBUG 2023/05/26 12:53:08 ----
[lp-1  ] DEBUG 2023/05/26 12:53:08 charge power: 55W
[site  ] DEBUG 2023/05/26 12:53:08 pv power: 9150W
[site  ] DEBUG 2023/05/26 12:53:08 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:08 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:08 grid power: -7750W
[site  ] DEBUG 2023/05/26 12:53:08 site power: -7700W
[lp-1  ] DEBUG 2023/05/26 12:53:08 charge currents: [1.17 0.273 0.273]A
[lp-1  ] DEBUG 2023/05/26 12:53:08 charge meter total import: 3751.767kWh
[lp-1  ] DEBUG 2023/05/26 12:53:08 charger status: C
[lp-1  ] INFO 2023/05/26 12:53:08 start charging ->
[lp-1  ] DEBUG 2023/05/26 12:53:08 wake-up timer: stop
[lp-1  ] DEBUG 2023/05/26 12:53:09 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:09 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:09 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:09 pv charge current: 14.3A = 3.17A + 11.2A (-7700W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:53:09 max charge current: 14.3A
[site  ] DEBUG 2023/05/26 12:53:18 ----
[lp-1  ] DEBUG 2023/05/26 12:53:18 charge power: 2788W
[site  ] DEBUG 2023/05/26 12:53:18 pv power: 9139W
[site  ] DEBUG 2023/05/26 12:53:18 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:18 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:18 grid power: -1054W
[site  ] DEBUG 2023/05/26 12:53:18 site power: -1004W
[lp-1  ] DEBUG 2023/05/26 12:53:18 charge currents: [6.09 6.14 0.324]A
[lp-1  ] DEBUG 2023/05/26 12:53:18 detected active phases: 2p
[lp-1  ] DEBUG 2023/05/26 12:53:18 charge meter total import: 3751.770kWh
[lp-1  ] DEBUG 2023/05/26 12:53:18 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:53:18 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:18 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:18 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:18 pv charge current: 10.3A = 8.09A + 2.18A (-1004W @ 2p)
[lp-1  ] DEBUG 2023/05/26 12:53:18 max charge current: 10.3A
[site  ] DEBUG 2023/05/26 12:53:28 ----
[lp-1  ] DEBUG 2023/05/26 12:53:28 charge power: 4130W
[site  ] DEBUG 2023/05/26 12:53:28 pv power: 9129W
[site  ] DEBUG 2023/05/26 12:53:28 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:28 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:28 grid power: 264W
[site  ] DEBUG 2023/05/26 12:53:28 site power: 314W
[lp-1  ] DEBUG 2023/05/26 12:53:28 charge currents: [6.02 6.07 6.01]A
[lp-1  ] DEBUG 2023/05/26 12:53:28 detected active phases: 3p
[lp-1  ] DEBUG 2023/05/26 12:53:28 charge meter total import: 3751.780kWh
[lp-1  ] DEBUG 2023/05/26 12:53:28 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:53:28 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:28 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:28 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:28 pv charge current: 7.57A = 8.02A + -0.455A (314W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:53:28 max charge current: 7.57A
[site  ] DEBUG 2023/05/26 12:53:38 ----
[lp-1  ] DEBUG 2023/05/26 12:53:38 charge power: 4193W
[site  ] DEBUG 2023/05/26 12:53:38 pv power: 9121W
[site  ] DEBUG 2023/05/26 12:53:38 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:38 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:38 grid power: -2144W
[site  ] DEBUG 2023/05/26 12:53:38 site power: -2094W
[lp-1  ] DEBUG 2023/05/26 12:53:38 charge currents: [6.1 6.15 6.08]A
[lp-1  ] DEBUG 2023/05/26 12:53:38 detected active phases: 3p
[lp-1  ] DEBUG 2023/05/26 12:53:38 charge meter total import: 3751.791kWh
[lp-1  ] DEBUG 2023/05/26 12:53:38 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:53:38 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:38 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:38 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:38 pv charge current: 10.6A = 7.57A + 3.03A (-2094W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:53:38 max charge current: 10.6A
[site  ] DEBUG 2023/05/26 12:53:48 ----
[lp-1  ] DEBUG 2023/05/26 12:53:48 charge power: 4124W
[site  ] DEBUG 2023/05/26 12:53:48 pv power: 9088W
[site  ] DEBUG 2023/05/26 12:53:48 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:48 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:48 grid power: -3662W
[site  ] DEBUG 2023/05/26 12:53:48 site power: -3612W
[lp-1  ] DEBUG 2023/05/26 12:53:48 charge currents: [6.01 6.05 6.01]A
[lp-1  ] DEBUG 2023/05/26 12:53:48 detected active phases: 3p
[lp-1  ] DEBUG 2023/05/26 12:53:48 charge meter total import: 3751.803kWh
[lp-1  ] DEBUG 2023/05/26 12:53:48 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:53:48 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:48 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:48 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:48 pv charge current: 13.2A = 8.01A + 5.23A (-3612W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:53:48 max charge current: 13.2A
[site  ] DEBUG 2023/05/26 12:53:58 ----
[lp-1  ] DEBUG 2023/05/26 12:53:58 charge power: 4193W
[site  ] DEBUG 2023/05/26 12:53:58 pv power: 9116W
[site  ] DEBUG 2023/05/26 12:53:58 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:53:58 battery power: 0W
[site  ] DEBUG 2023/05/26 12:53:58 grid power: -3626W
[site  ] DEBUG 2023/05/26 12:53:58 site power: -3576W
[lp-1  ] DEBUG 2023/05/26 12:53:58 charge currents: [6.09 6.14 6.08]A
[lp-1  ] DEBUG 2023/05/26 12:53:58 detected active phases: 3p
[lp-1  ] DEBUG 2023/05/26 12:53:58 charge meter total import: 3751.815kWh
[lp-1  ] DEBUG 2023/05/26 12:53:58 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:53:58 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:53:58 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:53:58 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:53:58 pv charge current: 13.3A = 8.09A + 5.18A (-3576W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:53:58 max charge current: 13.3A
[site  ] DEBUG 2023/05/26 12:54:08 ----
[lp-1  ] DEBUG 2023/05/26 12:54:08 charge power: 4195W
[site  ] DEBUG 2023/05/26 12:54:08 pv power: 9131W
[site  ] DEBUG 2023/05/26 12:54:08 battery soc: 100%
[site  ] DEBUG 2023/05/26 12:54:08 battery power: 0W
[site  ] DEBUG 2023/05/26 12:54:08 grid power: -3620W
[site  ] DEBUG 2023/05/26 12:54:08 site power: -3570W
[lp-1  ] DEBUG 2023/05/26 12:54:08 charge currents: [6.1 6.13 6.1]A
[lp-1  ] DEBUG 2023/05/26 12:54:08 detected active phases: 3p
[lp-1  ] DEBUG 2023/05/26 12:54:08 charge meter total import: 3751.826kWh
[lp-1  ] DEBUG 2023/05/26 12:54:08 charger status: C
[lp-1  ] DEBUG 2023/05/26 12:54:08 vehicle soc: 65%
[lp-1  ] DEBUG 2023/05/26 12:54:08 vehicle soc limit: 80%
[lp-1  ] DEBUG 2023/05/26 12:54:08 vehicle range: 318km
[lp-1  ] DEBUG 2023/05/26 12:54:08 pv charge current: 13.3A = 8.1A + 5.17A (-3570W @ 3p)
[lp-1  ] DEBUG 2023/05/26 12:54:08 max charge current: 13.3A
[site  ] DEBUG 2023/05/26 12:54:18 ----

What type of operating system are you running?

Linux

Version

evcc 0.117.4 (29b68abc)

andig commented 1 year ago

Somehow the charging session is not updated in the UI

This needs a modbus trace log of evcc running and evcc charger both at the time the error occurs. Its hard to imagine that there is a difference over modbus.

Also note https://github.com/evcc-io/evcc/pull/8093 which is only in the nightly version for now.

mucki12 commented 1 year ago

Die Änderung aus #8093 müssten ja in der nightly implementiert sein. Ich habe mich auch über die angeblich geladenen kWh gewundert und daher evcc gerade mit download der aktuellen nightly komplett neu aufgesetzt (Datenbank gelöscht, evcc Image gelöscht, neu geladen und mit vorhandener evcc.yaml neu gestartet).

Obwohl zu keiner Zeit ein Fahrzeug angeschlossen war und mit der neuen Installation nie ein Ladevorgang durchgeführt wurde, zeigt er mir komischerweise eine Ladung mit 10,4 kWh an: evcc-evccnightly.csv

IMG_0397

Nachtrag: Scheinbar nimmt er das aus einer Ladesession von gestern - zumindest wären die 10,4kWh so erklärbar. evcc charger:

/app # evcc charger                                                                                                   
keba_garage                                                                                                                            
-----------                                                                                                                            
Power:          0W                                                                                                                     
Energy:         143.2kWh                                                                                                               
Current L1..L3: 0A 0A 0A                                                                                                               
Charge status:  A                                                                                                                      
Enabled:        false                                                                                                                  
Charged:        10.4kWh                                                                                                                
Identifier:     <none>      

IMG_0398

andig commented 1 year ago

Obwohl zu keiner Zeit ein Fahrzeug angeschlossen war und mit der neuen Installation nie ein Ladevorgang durchgeführt wurde

Natürlich wurde ein Ladevorgang durchgeführt- mit dem Charger ;) Genau da kommen die Daten auch her:

Charged: 10.4kWh

mucki12 commented 1 year ago

Ja genau. Am 5.6. - habe mich nur gefragt warum die nightly Version mit Modbus Template bei Neuinstallation am 6.6. diese noch anzeigt? Test mit Neuinstallation ebenfalls heute und der Release Version und udp zeigt diese nicht an.

Aber nach deiner Rückmeldung kann ich davon ausgehen, dass dort auch alte Ladevorgänge angezeigt werden und diese beim nächsten Ladevorgang zurückgesetzt werden, richtig?

andig commented 1 year ago

Offensichtlich- ansonsten geht die Frage an den Keba Support. Wir zeigen an was über Modbus kommt.

Duell10111 commented 1 year ago

Was ich auch komisch finde ist, das bei den Ladevorgängen die Geladene Energie falsch dargestellt wird, aber die Zählerstände stimmen. 😅

image

andig commented 1 year ago

Was ich auch komisch finde ist, das bei den Ladevorgängen die Geladene Energie falsch dargestellt wird, aber die Zählerstände stimmen. 😅

Kannst du das konkret machen? Faktor falsch? 10 zu groß? Leider sind auch die Ladestände nur deshalb richtig weil wir es anders machen als es in der Doku steht- da ist also Experiment angesagt.

Und ganz wichtig: verwendest Du schon dir Korrektur aus https://github.com/evcc-io/evcc/commit/eebdacaf338b0e2fc8307239c02bdafd1aace539?

Duell10111 commented 1 year ago

Was ich auch komisch finde ist, das bei den Ladevorgängen die Geladene Energie falsch dargestellt wird, aber die Zählerstände stimmen. 😅

Kannst du das konkret machen? Faktor falsch? 10 zu groß? Leider sind auch die Ladestände nur deshalb richtig weil wir es anders machen als es in der Doku steht- da ist also Experiment angesagt.

Irgendwie nicht Faktor falsch, sondern manchmal übernimmt er einfach den Wert vom vorherigen Ladevorgang. 🤨

image

Hier ein weiteres Beispiel:

image

Ich bin mir auch nicht ganz sicher woran das genau liegen kann. Die Modbus Register sahen eigentlich richtig aus. 🤔

Hier wird es korrekt zurückgegeben nur steht es in der UI nicht richtig. :/

image

Was mir noch aufgefallen ist, das wenn ich das Auto abstecke und dann EVCC neu starte, fängt er wieder korrekt von 0 kWh an. 😅

mucki12 commented 1 year ago

Offensichtlich- ansonsten geht die Frage an den Keba Support. Wir zeigen an was über Modbus kommt.

Du hattest natürlich (wie immer) recht - die Anzeige wurde mit einem neuen Ladevorgang korrekt zurückgesetzt und zeigt mir jetzt zumindest mit den letzten zwei Ladungen alles korrekt an. Vielen Dank für die letzten Updates.

Bildschirmfoto 2023-06-09 um 17 38 44 Bildschirmfoto 2023-06-09 um 17 39 07 Bildschirmfoto 2023-06-09 um 17 39 29

Duell10111 commented 1 year ago

Was ich auch komisch finde ist, das bei den Ladevorgängen die Geladene Energie falsch dargestellt wird, aber die Zählerstände stimmen. 😅

Kannst du das konkret machen? Faktor falsch? 10 zu groß? Leider sind auch die Ladestände nur deshalb richtig weil wir es anders machen als es in der Doku steht- da ist also Experiment angesagt.

Irgendwie nicht Faktor falsch, sondern manchmal übernimmt er einfach den Wert vom vorherigen Ladevorgang. 🤨

image

Hier ein weiteres Beispiel:

image

Ich bin mir auch nicht ganz sicher woran das genau liegen kann. Die Modbus Register sahen eigentlich richtig aus. 🤔

Hier wird es korrekt zurückgegeben nur steht es in der UI nicht richtig. :/

image

Was mir noch aufgefallen ist, das wenn ich das Auto abstecke und dann EVCC neu starte, fängt er wieder korrekt von 0 kWh an. 😅

Ich habe vermutlich das Problem gefunden und zwar beinhaltet das ChargedEnergy Register den Wert des vorherigen Ladevorgangs solange der nächste Ladevorgang noch nicht gestartet wurde.

Vlt. kann das dass Problem bei EVCC verursachen. 🤔

premultiply commented 1 year ago

Das ist Mist. Eigentlich müsste die Keba das beim Anstecken nullen.

Aber das können wir abfangen.

Duell10111 commented 1 year ago

Ich habe mal dazu einen Workarround gebaut und der funktioniert bei mir auch gut mit meiner Keba :). Was haltet ihr davon?

https://github.com/evcc-io/evcc/pull/8577

premultiply commented 1 year ago

Zu kompliziert. 😉 Einfach chargedEnergy() entfernen. Das kommt dann automatisch richtig via totalEnergy().