evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Charging with identified vehicle and PV mode does not regulate power on connect

Open DerAndereAndi opened this issue 3 years ago • 18 comments

Describe the bug

When connecting a vehicle, that is identified by the charger (PMCC EEBUS), and the default charge mode is set to pv, it will start charging immediately. Due to EEBUS it will start with full power, as the logic to pause charging right away was removed and there is no limit set when connecting the vehicle. This is fine.

But in PV mode, it should start regulating the currents or active PV disable timer, which does not happen.

The log file is cut off, as below the end it is repeating the same until I manually change the charge mode in the UI, e.g. to MinPV

Steps to reproduce

  1. Setup an vehicle that can be identified by some means
  2. Set the vehicle to default mode PV
  3. Use an EEBUS charger, or maybe other charger, that has no limits set on connection and charging is enabled by default
  4. Connect the vehicle

Configuration details

network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: evcc.local
  # host: 0.0.0.0
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

# unique installation id
plant: xxxxx08eed430aefb76f5b3a4684b69b708xxxxx

interval: 5s # control cycle interval

log: debug
levels:
  core: trace
  lp-1: trace
  lp-2: trace
  semp: info
  eebus: trace
  sma: debug

# HEMS
hems:
  type: sma
  VendorID: 111081111
  DeviceID: 11156b3ddaaa
  AllowControl: false

eebus:
  shipid: bbb84c490507aaaf
  interfaces:
  - eth0
  # local signed certificate, required for eebus chargers and generated via `evcc eebus-cert`
  certificate:
    public: |
      -----BEGIN CERTIFICATE-----
      ...
      -----END CERTIFICATE-----
    private: |
      -----BEGIN EC PRIVATE KEY-----
      ...
      -----END EC PRIVATE KEY-----

# mqtt message broker
mqtt:
  broker: 192.168.1.59:1883
  topic: evcc # root topic for publishing, set empty to disable
  # user:
  # password:

meters:
- name: grid
  type: sma
  uri: 192.168.1.93
- name: pv
  type: sma
  uri: 192.168.1.94
  scale: -1
- name: battery
  type: template
  template: sma-inverter
  usage: battery
  host: 192.168.1.96
  password: aaaaaaaaaaaa

chargers:
- name: mcc1
  type: template
  template: pmcc
  ski: 6a0f-300b-4185-fb6c-1f90-4ada-b7b0-ab6e-edaf-a3f3
- name: mcc2
  type: template
  template: pmcc
  ski: 7f34-5ed0-0fa9-9ac7-14f8-d8c3-6acc-84d2-f606-de4b # test

vehicles:
- name: taycan
  type: template
  template: iso15118
  title: Taycan
  capacity: 83 # kWh
  identifiers:
  - F0:7F:0C:00:44:AA
  phases: 3
  targetSoc: 85
  priority: 1
  mode: pv
- name: id3
  type: template
  template: iso15118
  title: ID.3
  capacity: 58
  identifiers:
  - 00:7D:FA:*
  phases: 3
  minCurrent: 3 # minimum charge current (default 6A)
  maxCurrent: 16 # maximum charge current (default 16A)
  targetSoc: 100
  priority: 2
  mode: pv

site:
  title: Daheim
  meters:
    grid: grid
    pv:
    - pv
    battery: battery
  prioritySoC: 25 # give home battery priority up to this soc (empty to disable)
  bufferSoC: # ignore home battery discharge above soc (empty to disable)
  residualPower: 50
  smartCostLimit: 0

loadpoints:
- title: Garage # name for logging
  charger: mcc1 # charger
  mode: off
  soc:
    poll:
      mode: charging
      interval: 60m
    estimate: true # set true to interpolate between api updates
  resetOnDisconnect: true
  phases: 3 # ev phases (default 3)
  enable: # pv mode enable behavior
    delay: 15s  # threshold must be exceeded for this long
  disable: # pv mode disable behavior
    delay: 2m # threshold must be exceeded for this long
  guardduration: 1m # switch charger contactor not more often than this (default 10m)
- title: Carport
  charger: mcc-test
  mode: off
  soc:
    poll:
      mode: charging
      interval: 60m
    estimate: true # set true to interpolate between api updates
  resetOnDisconnect: true
  phases: 3 # ev phases (default 3)
  enable: # pv mode enable behavior
    delay: 1m  # threshold must be exceeded for this long
  disable: # pv mode disable behavior
    delay: 1m # threshold must be exceeded for this long
  guardduration: 1m # switch charger contactor not more often than this (default 10m)

Log details

[lp-1  ] DEBUG 2023/08/21 10:48:40 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:48:40 charge power: 0W
[site  ] DEBUG 2023/08/21 10:48:40 pv power: 4042W
[site  ] DEBUG 2023/08/21 10:48:40 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:48:40 battery power: -3630W
[site  ] DEBUG 2023/08/21 10:48:40 grid power: -39W
[site  ] DEBUG 2023/08/21 10:48:40 grid powers: [364 -213 -190]W
[site  ] DEBUG 2023/08/21 10:48:40 grid currents: [2.58 -1 -0.922]A
[site  ] DEBUG 2023/08/21 10:48:40 site power: -3619W
[lp-2  ] DEBUG 2023/08/21 10:48:40 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2023/08/21 10:48:40 charger status: B
[lp-2  ] INFO 2023/08/21 10:48:40 car connected
[lp-2  ] DEBUG 2023/08/21 10:48:40 vehicle api refresh
[site  ] DEBUG 2023/08/21 10:48:45 ----
[lp-1  ] DEBUG 2023/08/21 10:48:45 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:48:45 charge power: 0W
[site  ] DEBUG 2023/08/21 10:48:45 pv power: 4043W
[site  ] DEBUG 2023/08/21 10:48:45 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:48:45 battery power: -3647W
[site  ] DEBUG 2023/08/21 10:48:45 grid power: -41W
[site  ] DEBUG 2023/08/21 10:48:45 grid powers: [362 -212 -190]W
[site  ] DEBUG 2023/08/21 10:48:45 grid currents: [2.54 -1 -0.922]A
[site  ] DEBUG 2023/08/21 10:48:45 site power: -3638W
[lp-1  ] DEBUG 2023/08/21 10:48:45 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:48:45 charger status: A
[site  ] DEBUG 2023/08/21 10:48:50 ----
[lp-1  ] DEBUG 2023/08/21 10:48:50 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:48:50 charge power: 0W
[site  ] DEBUG 2023/08/21 10:48:50 pv power: 4044W
[site  ] DEBUG 2023/08/21 10:48:50 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:48:50 battery power: -3662W
[site  ] DEBUG 2023/08/21 10:48:50 grid power: -25W
[site  ] DEBUG 2023/08/21 10:48:50 grid powers: [379 -214 -190]W
[site  ] DEBUG 2023/08/21 10:48:50 grid currents: [2.48 -1.01 -0.923]A
[site  ] DEBUG 2023/08/21 10:48:50 site power: -3637W
[lp-2  ] DEBUG 2023/08/21 10:48:50 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2023/08/21 10:48:50 charger status: B
[lp-2  ] DEBUG 2023/08/21 10:48:50 charger vehicle id: 00:7D:FA:08:84:E9
[lp-2  ] INFO 2023/08/21 10:48:50 vehicle updated: unknown -> ID.3
[lp-2  ] DEBUG 2023/08/21 10:48:50 set charge mode: pv
[lp-2  ] DEBUG 2023/08/21 10:48:50 set max current: 16
[lp-2  ] DEBUG 2023/08/21 10:48:50 set priority: 2
[lp-2  ] DEBUG 2023/08/21 10:48:50 pv charge current: 5.27A = 0A + 5.27A (-3637W @ 3p)
[lp-2  ] DEBUG 2023/08/21 10:48:50 pv enable timer reset
[lp-2  ] DEBUG 2023/08/21 10:48:50 pv timer inactive
[site  ] DEBUG 2023/08/21 10:48:50 ----
[lp-1  ] DEBUG 2023/08/21 10:48:50 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:48:50 charge power: 0W
[site  ] DEBUG 2023/08/21 10:48:50 pv power: 4044W
[site  ] DEBUG 2023/08/21 10:48:50 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:48:50 battery power: -3662W
[site  ] DEBUG 2023/08/21 10:48:50 grid power: -25W
[site  ] DEBUG 2023/08/21 10:48:50 grid powers: [379 -214 -190]W
[site  ] DEBUG 2023/08/21 10:48:50 grid currents: [2.48 -1.01 -0.923]A
[site  ] DEBUG 2023/08/21 10:48:50 site power: -3637W
[lp-2  ] DEBUG 2023/08/21 10:48:50 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2023/08/21 10:48:50 charger status: B
[lp-2  ] DEBUG 2023/08/21 10:48:50 pv charge current: 5.27A = 0A + 5.27A (-3637W @ 3p)
[site  ] DEBUG 2023/08/21 10:48:55 ----
[lp-1  ] DEBUG 2023/08/21 10:48:55 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:48:55 charge power: 0W
[site  ] DEBUG 2023/08/21 10:48:55 pv power: 4046W
[site  ] DEBUG 2023/08/21 10:48:55 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:48:55 battery power: -3632W
[site  ] DEBUG 2023/08/21 10:48:55 grid power: -39W
[site  ] DEBUG 2023/08/21 10:48:55 grid powers: [364 -213 -191]W
[site  ] DEBUG 2023/08/21 10:48:55 grid currents: [2.59 -1 -0.924]A
[site  ] DEBUG 2023/08/21 10:48:55 site power: -3621W
[lp-1  ] DEBUG 2023/08/21 10:48:55 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:48:55 charger status: A
[site  ] DEBUG 2023/08/21 10:49:00 ----
[lp-1  ] DEBUG 2023/08/21 10:49:00 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:00 charge power: 0W
[site  ] DEBUG 2023/08/21 10:49:00 pv power: 4047W
[site  ] DEBUG 2023/08/21 10:49:00 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:00 battery power: -3651W
[site  ] DEBUG 2023/08/21 10:49:00 grid power: -23W
[site  ] DEBUG 2023/08/21 10:49:00 grid powers: [382 -214 -191]W
[site  ] DEBUG 2023/08/21 10:49:00 grid currents: [2.56 -1.01 -0.929]A
[site  ] DEBUG 2023/08/21 10:49:00 site power: -3624W
[lp-2  ] DEBUG 2023/08/21 10:49:00 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2023/08/21 10:49:00 charger status: B
[lp-2  ] DEBUG 2023/08/21 10:49:00 pv charge current: 5.25A = 0A + 5.25A (-3624W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:05 ----
[lp-1  ] DEBUG 2023/08/21 10:49:05 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:05 charge power: 729W
[site  ] DEBUG 2023/08/21 10:49:05 pv power: 4051W
[site  ] DEBUG 2023/08/21 10:49:05 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:05 battery power: -3635W
[site  ] DEBUG 2023/08/21 10:49:05 grid power: -43W
[site  ] DEBUG 2023/08/21 10:49:05 grid powers: [360 -214 -190]W
[site  ] DEBUG 2023/08/21 10:49:05 grid currents: [2.29 -1 -0.922]A
[site  ] DEBUG 2023/08/21 10:49:05 site power: -3628W
[lp-1  ] DEBUG 2023/08/21 10:49:05 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:05 charger status: A
[site  ] DEBUG 2023/08/21 10:49:10 ----
[lp-1  ] DEBUG 2023/08/21 10:49:10 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:10 charge power: 11279W
[site  ] DEBUG 2023/08/21 10:49:10 pv power: 4052W
[site  ] DEBUG 2023/08/21 10:49:10 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:10 battery power: -1996W
[site  ] DEBUG 2023/08/21 10:49:10 grid power: 4719W
[site  ] DEBUG 2023/08/21 10:49:10 grid powers: [-2359 3502 3576]W
[site  ] DEBUG 2023/08/21 10:49:10 grid currents: [-11.1 15.2 15.2]A
[site  ] DEBUG 2023/08/21 10:49:10 site power: 2773W
[lp-2  ] DEBUG 2023/08/21 10:49:10 charge currents: [16 16.2 16.2]A
[lp-2  ] DEBUG 2023/08/21 10:49:10 charger status: C
[lp-2  ] INFO 2023/08/21 10:49:10 start charging ->
[lp-2  ] DEBUG 2023/08/21 10:49:10 wake-up timer: stop
[lp-2  ] DEBUG 2023/08/21 10:49:10 pv charge current: 0A = 0A + -4.02A (2773W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:15 ----
[lp-1  ] DEBUG 2023/08/21 10:49:15 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:15 charge power: 11293W
[site  ] DEBUG 2023/08/21 10:49:15 pv power: 4053W
[site  ] DEBUG 2023/08/21 10:49:15 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:15 battery power: 5052W
[site  ] DEBUG 2023/08/21 10:49:15 grid power: 2589W
[site  ] DEBUG 2023/08/21 10:49:15 grid powers: [-4481 3483 3587]W
[site  ] DEBUG 2023/08/21 10:49:15 grid currents: [-18.7 15.2 15.3]A
[site  ] DEBUG 2023/08/21 10:49:15 site power: 7691W
[lp-1  ] DEBUG 2023/08/21 10:49:15 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:15 charger status: A
[site  ] DEBUG 2023/08/21 10:49:20 ----
[lp-1  ] DEBUG 2023/08/21 10:49:20 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:20 charge power: 11254W
[site  ] DEBUG 2023/08/21 10:49:20 pv power: 4051W
[site  ] DEBUG 2023/08/21 10:49:20 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:20 battery power: 4727W
[site  ] DEBUG 2023/08/21 10:49:20 grid power: 3021W
[site  ] DEBUG 2023/08/21 10:49:20 grid powers: [-4043 3492 3572]W
[site  ] DEBUG 2023/08/21 10:49:20 grid currents: [-16.9 15.2 15.2]A
[site  ] DEBUG 2023/08/21 10:49:20 site power: 7798W
[lp-2  ] DEBUG 2023/08/21 10:49:20 charge currents: [16 16.2 16.1]A
[lp-2  ] DEBUG 2023/08/21 10:49:20 detected active phases: 3p
[lp-2  ] DEBUG 2023/08/21 10:49:20 charger status: C
[lp-2  ] DEBUG 2023/08/21 10:49:20 pv charge current: 0A = 0A + -11.3A (7798W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:25 ----
[lp-1  ] DEBUG 2023/08/21 10:49:25 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:25 charge power: 11249W
[site  ] DEBUG 2023/08/21 10:49:25 pv power: 4056W
[site  ] DEBUG 2023/08/21 10:49:25 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:25 battery power: 4577W
[site  ] DEBUG 2023/08/21 10:49:25 grid power: 3041W
[site  ] DEBUG 2023/08/21 10:49:25 grid powers: [-3999 3479 3561]W
[site  ] DEBUG 2023/08/21 10:49:25 grid currents: [-16.8 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:49:25 site power: 7668W
[lp-1  ] DEBUG 2023/08/21 10:49:25 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:25 charger status: A
[site  ] DEBUG 2023/08/21 10:49:30 ----
[lp-1  ] DEBUG 2023/08/21 10:49:30 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:30 charge power: 11249W
[site  ] DEBUG 2023/08/21 10:49:30 pv power: 4057W
[site  ] DEBUG 2023/08/21 10:49:30 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:30 battery power: 4566W
[site  ] DEBUG 2023/08/21 10:49:30 grid power: 3048W
[site  ] DEBUG 2023/08/21 10:49:30 grid powers: [-3991 3479 3561]W
[site  ] DEBUG 2023/08/21 10:49:30 grid currents: [-16.7 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:49:30 site power: 7664W
[lp-2  ] DEBUG 2023/08/21 10:49:30 charge currents: [16 16.2 16.1]A
[lp-2  ] DEBUG 2023/08/21 10:49:30 detected active phases: 3p
[lp-2  ] DEBUG 2023/08/21 10:49:30 charger status: C
[lp-2  ] DEBUG 2023/08/21 10:49:30 pv charge current: 0A = 0A + -11.1A (7664W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:35 ----
[lp-1  ] DEBUG 2023/08/21 10:49:35 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:35 charge power: 11287W
[site  ] DEBUG 2023/08/21 10:49:35 pv power: 4060W
[site  ] DEBUG 2023/08/21 10:49:35 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:35 battery power: 4598W
[site  ] DEBUG 2023/08/21 10:49:35 grid power: 3022W
[site  ] DEBUG 2023/08/21 10:49:35 grid powers: [-4012 3482 3552]W
[site  ] DEBUG 2023/08/21 10:49:35 grid currents: [-16.8 15.1 15.1]A
[site  ] DEBUG 2023/08/21 10:49:35 site power: 7670W
[lp-1  ] DEBUG 2023/08/21 10:49:35 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:35 charger status: A
[site  ] DEBUG 2023/08/21 10:49:40 ----
[lp-1  ] DEBUG 2023/08/21 10:49:40 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:40 charge power: 11267W
[site  ] DEBUG 2023/08/21 10:49:40 pv power: 4057W
[site  ] DEBUG 2023/08/21 10:49:40 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:40 battery power: 4585W
[site  ] DEBUG 2023/08/21 10:49:40 grid power: 3066W
[site  ] DEBUG 2023/08/21 10:49:40 grid powers: [-3996 3496 3566]W
[site  ] DEBUG 2023/08/21 10:49:40 grid currents: [-16.8 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:49:40 site power: 7701W
[lp-2  ] DEBUG 2023/08/21 10:49:40 charge currents: [16 16.2 16.1]A
[lp-2  ] DEBUG 2023/08/21 10:49:40 detected active phases: 3p
[lp-2  ] DEBUG 2023/08/21 10:49:40 charger status: C
[lp-2  ] DEBUG 2023/08/21 10:49:40 pv charge current: 0A = 0A + -11.2A (7701W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:45 ----
[lp-1  ] DEBUG 2023/08/21 10:49:45 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:45 charge power: 11288W
[site  ] DEBUG 2023/08/21 10:49:45 pv power: 4059W
[site  ] DEBUG 2023/08/21 10:49:45 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:45 battery power: 4567W
[site  ] DEBUG 2023/08/21 10:49:45 grid power: 3081W
[site  ] DEBUG 2023/08/21 10:49:45 grid powers: [-3977 3498 3560]W
[site  ] DEBUG 2023/08/21 10:49:45 grid currents: [-16.6 15.2 15.2]A
[site  ] DEBUG 2023/08/21 10:49:45 site power: 7698W
[lp-1  ] DEBUG 2023/08/21 10:49:45 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:45 charger status: A
[site  ] DEBUG 2023/08/21 10:49:50 ----
[lp-1  ] DEBUG 2023/08/21 10:49:50 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:50 charge power: 11284W
[site  ] DEBUG 2023/08/21 10:49:50 pv power: 4059W
[site  ] DEBUG 2023/08/21 10:49:50 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:50 battery power: 4568W
[site  ] DEBUG 2023/08/21 10:49:50 grid power: 3063W
[site  ] DEBUG 2023/08/21 10:49:50 grid powers: [-3992 3497 3559]W
[site  ] DEBUG 2023/08/21 10:49:50 grid currents: [-16.8 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:49:50 site power: 7681W
[lp-2  ] DEBUG 2023/08/21 10:49:50 charge currents: [16 16.2 16.2]A
[lp-2  ] DEBUG 2023/08/21 10:49:50 detected active phases: 3p
[lp-2  ] DEBUG 2023/08/21 10:49:50 charger status: C
[lp-2  ] DEBUG 2023/08/21 10:49:50 pv charge current: 0A = 0A + -11.1A (7681W @ 3p)
[site  ] DEBUG 2023/08/21 10:49:55 ----
[lp-1  ] DEBUG 2023/08/21 10:49:55 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:49:55 charge power: 11255W
[site  ] DEBUG 2023/08/21 10:49:55 pv power: 4030W
[site  ] DEBUG 2023/08/21 10:49:55 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:49:55 battery power: 4577W
[site  ] DEBUG 2023/08/21 10:49:55 grid power: 3034W
[site  ] DEBUG 2023/08/21 10:49:55 grid powers: [-4016 3478 3572]W
[site  ] DEBUG 2023/08/21 10:49:55 grid currents: [-16.8 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:49:55 site power: 7661W
[lp-1  ] DEBUG 2023/08/21 10:49:55 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/08/21 10:49:55 charger status: A
[site  ] DEBUG 2023/08/21 10:50:00 ----
[lp-1  ] DEBUG 2023/08/21 10:50:00 charge power: 0W
[lp-2  ] DEBUG 2023/08/21 10:50:00 charge power: 11240W
[site  ] DEBUG 2023/08/21 10:50:00 pv power: 4060W
[site  ] DEBUG 2023/08/21 10:50:00 battery soc: 60%
[site  ] DEBUG 2023/08/21 10:50:00 battery power: 4565W
[site  ] DEBUG 2023/08/21 10:50:00 grid power: 3062W
[site  ] DEBUG 2023/08/21 10:50:00 grid powers: [-3990 3481 3571]W
[site  ] DEBUG 2023/08/21 10:50:00 grid currents: [-16.7 15.1 15.2]A
[site  ] DEBUG 2023/08/21 10:50:00 site power: 7677W
[lp-2  ] DEBUG 2023/08/21 10:50:00 charge currents: [16 16.2 16.2]A
[lp-2  ] DEBUG 2023/08/21 10:50:00 detected active phases: 3p
[lp-2  ] DEBUG 2023/08/21 10:50:00 charger status: C
[lp-2  ] DEBUG 2023/08/21 10:50:00 pv charge current: 0A = 0A + -11.1A (7677W @ 3p)
[site  ] DEBUG 2023/08/21 10:50:05 ----

What type of operating system are you running?

Linux

Version

evcc version 0.118.11 (d3914a3c)

DerAndereAndi avatar Aug 21 '23 09:08 DerAndereAndi

Ich vermute Du kommst hier einfach nie über die 6A default Minimum. Deshalb gibts kein charger: enable.

andig avatar Aug 21 '23 17:08 andig

Da bei

[lp-2  ] DEBUG 2023/08/21 10:49:20 charger status: C

der Status auf C ist, sollte dann nicht der PV disable Timer anspringen? charger enable bewirkt auf EEBUS sowieso nichts.

DerAndereAndi avatar Aug 21 '23 18:08 DerAndereAndi

Ich denke, das haben wir in https://github.com/evcc-io/evcc/pull/9369 gelöst. Bitte mal mit der 0.119.0 probieren.

GrimmiMeloni avatar Aug 23 '23 10:08 GrimmiMeloni

Das Verhalten ist identisch.

DerAndereAndi avatar Aug 25 '23 15:08 DerAndereAndi

@DerAndereAndi falls Du das immer reproduzieren kannst: bekommst Du den Commit oder die Range identifiziert?

andig avatar Aug 25 '23 15:08 andig

@DerAndereAndi auf den zweiten Blick: der Status wechselt immer A-C-A-C-A-C. Das muss aber auf der EEbus Seite passieren?

andig avatar Aug 25 '23 15:08 andig

@DerAndereAndi falls Du das immer reproduzieren kannst: bekommst Du den Commit oder die Range identifiziert?

Bauchgefühl: Seit beim Start nicht mehr direkt pausiert wird und dann je nach Lademodus freigegeben wird.

@DerAndereAndi auf den zweiten Blick: der Status wechselt immer A-C-A-C-A-C. Das muss aber auf der EEbus Seite passieren?

Schau mal an den Anfang von der Zeile, das sind 2 Loadpoints ;)

DerAndereAndi avatar Aug 25 '23 15:08 DerAndereAndi

I’m having the same issue. I went from version 0.118.11 using Tesla with WC3 and everything was working perfectly.

Upgraded to 0.119.1 and now vehicle starts charging immediately when plugged in using whatever the last charge setting was. Turning off works, min+solar sets it to minimum charge but pv only does not regulate charging.

Ich habe dasselbe Problem. Ich bin von Version 0.118.11 auf Version 0.119.1 mit Tesla und WC3 umgestiegen, und alles hat perfekt funktioniert. Jetzt startet das Fahrzeug sofort mit dem Laden, sobald es eingesteckt wird, und verwendet dabei die zuletzt verwendeten Ladeeinstellungen. Das Ausschalten funktioniert, "min+solar" setzt es auf die minimale Ladung, aber "pv only" reguliert das Laden nicht.

infinus avatar Aug 27 '23 14:08 infinus

OK, das Problem scheint mit Chargern aufzutreten die automatisch Starten und bei denen die Implementierung den Enabled() Zustand nicht korrekt setzen. Zumindest für die TWC kann ich das nachvollziehen - die speichert lediglich einen internen State. Dieser sagt aber nichts über die Realität aus.

Ich vermute einen Zusammenhang mit #9408 oder #9407.

@infinus kannst Du mal ein Debug Log teilen?

GrimmiMeloni avatar Aug 27 '23 16:08 GrimmiMeloni

Just as a thought. Maybe we could (also) check charger status in syncCharger(). Based on the log shared by @DerAndereAndi this would have detected the ongoing charge in his scenario.

Generally speaking, a disabled loadpoint with a charger in status C can never be right.

GrimmiMeloni avatar Aug 27 '23 17:08 GrimmiMeloni

Just for context why I am focussing on enabled states of charger and loadpoint. Based on the log shared originally, I can conclude that in lp.pvMaxCurrent() here:

https://github.com/evcc-io/evcc/blob/57384e461b179d55ebb194b3b2c98cedb66f3795/core/loadpoint.go#L1136

both the mode as well as the targetCurrent condition are met. Therefore I conclude that lp.enabled was false (as otherwise the pv disable timer would have started).

Next, as in the same log lp.syncCharger() did not log the "charger out of sync" message, I also am positive that charger.enabled matches lp.enabled, i.e. is also false.

GrimmiMeloni avatar Aug 27 '23 18:08 GrimmiMeloni

One more thing to add. The reason why also no adjustment of the current happens is because evcc correctly calculates a targetCurrent of 0A, however lp.setLimit() is effectively a NoOp in this scenario. TargetCurrent matches lp.current (which is still 0A as well) and the load point also deems itself disabled.

TL;DR - the solution is to either get charger.Enabled() right, or if not possible at least to ensure lp.syncCharger() correctly detects a charge and updates lp.enabled accordingly.

GrimmiMeloni avatar Aug 27 '23 19:08 GrimmiMeloni

Here are my log details:

`

[main  ] INFO 2023/08/27 16:30:20 evcc 0.119.1
--
[main  ] INFO 2023/08/27 16:30:20 using config file: /etc/evcc.yaml
[main  ] INFO 2023/08/27 16:30:20 starting ui and api at :7070
[db    ] INFO 2023/08/27 16:30:20 using sqlite database: /root/.evcc/evcc.db
[site  ] INFO 2023/08/27 16:30:21 site config:
[site  ] INFO 2023/08/27 16:30:21   meters:      grid ✓ pv ✓ battery ✗
[site  ] INFO 2023/08/27 16:30:21     grid:      power ✓ energy ✗ currents ✗
[site  ] INFO 2023/08/27 16:30:21     pv 1:      power ✓ energy ✓ currents ✗
[site  ] INFO 2023/08/27 16:30:21   vehicles:
[site  ] INFO 2023/08/27 16:30:21     vehicle 1: range ✓ finish ✓ status ✓ climate ✗ wakeup ✓
[lp-1  ] INFO 2023/08/27 16:30:21 loadpoint 1:
[lp-1  ] INFO 2023/08/27 16:30:21   mode:        pv
[lp-1  ] INFO 2023/08/27 16:30:21   charger:     power ✓ energy ✗ currents ✓ phases ✗ wakeup ✗
[lp-1  ] INFO 2023/08/27 16:30:21   meters:      charge ✓
[lp-1  ] INFO 2023/08/27 16:30:21     charge:    power ✓ energy ✗ currents ✓
[lp-1  ] DEBUG 2023/08/27 16:30:21 phase timer inactive
[lp-1  ] DEBUG 2023/08/27 16:30:21 pv timer inactive
[lp-1  ] DEBUG 2023/08/27 16:30:21 guard timer inactive
[lp-1  ] INFO 2023/08/27 16:30:21 vehicle updated: unknown -> Infinus
[site  ] WARN 2023/08/27 16:30:21 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site  ] DEBUG 2023/08/27 16:30:21 ----
[lp-1  ] DEBUG 2023/08/27 16:30:21 charge power: 1493W
[site  ] DEBUG 2023/08/27 16:30:23 pv power: 516W
[site  ] DEBUG 2023/08/27 16:30:24 grid power: 1876W
[site  ] DEBUG 2023/08/27 16:30:24 site power: 1876W
[lp-1  ] DEBUG 2023/08/27 16:30:24 vehicle odometer: 62767km
[lp-1  ] DEBUG 2023/08/27 16:30:24 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:30:24 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:24 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:30:24 charger status: C
[lp-1  ] INFO 2023/08/27 16:30:24 car connected
[lp-1  ] DEBUG 2023/08/27 16:30:24 pv timer elapse
[lp-1  ] DEBUG 2023/08/27 16:30:24 pv timer inactive
[lp-1  ] DEBUG 2023/08/27 16:30:24 charger: guard elapse
[lp-1  ] DEBUG 2023/08/27 16:30:24 guard timer inactive
[lp-1  ] INFO 2023/08/27 16:30:24 start charging ->
[lp-1  ] DEBUG 2023/08/27 16:30:24 wake-up timer: stop
[lp-1  ] DEBUG 2023/08/27 16:30:24 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:30:24 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:30:24 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:30:24 pv charge current: 0A = 0A + -8.15A (1876W @ 1p)
[lp-1  ] DEBUG 2023/08/27 16:30:24 pv enable timer reset
[lp-1  ] DEBUG 2023/08/27 16:30:24 pv timer inactive
[site  ] DEBUG 2023/08/27 16:30:31 ----
[lp-1  ] DEBUG 2023/08/27 16:30:31 charge power: 1494W
[site  ] DEBUG 2023/08/27 16:30:33 pv power: 519W
[site  ] DEBUG 2023/08/27 16:30:34 grid power: 1879W
[site  ] DEBUG 2023/08/27 16:30:34 site power: 1879W
[lp-1  ] DEBUG 2023/08/27 16:30:34 vehicle odometer: 62767km
[lp-1  ] DEBUG 2023/08/27 16:30:34 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:30:34 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:34 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:30:34 detected active phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:34 charger status: C
[lp-1  ] DEBUG 2023/08/27 16:30:34 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:30:34 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:30:34 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:30:34 pv charge current: 0A = 0A + -8.17A (1879W @ 1p)
[site  ] DEBUG 2023/08/27 16:30:41 ----
[lp-1  ] DEBUG 2023/08/27 16:30:41 charge power: 1495W
[site  ] DEBUG 2023/08/27 16:30:42 pv power: 520W
[site  ] DEBUG 2023/08/27 16:30:44 grid power: 1901W
[site  ] DEBUG 2023/08/27 16:30:44 site power: 1901W
[lp-1  ] DEBUG 2023/08/27 16:30:44 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:30:44 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:44 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:30:44 detected active phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:44 charger status: C
[lp-1  ] DEBUG 2023/08/27 16:30:44 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:30:44 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:30:44 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:30:44 pv charge current: 0A = 0A + -8.27A (1901W @ 1p)
[site  ] DEBUG 2023/08/27 16:30:51 ----
[lp-1  ] DEBUG 2023/08/27 16:30:51 charge power: 1495W
[site  ] DEBUG 2023/08/27 16:30:55 pv power: 520W
[site  ] DEBUG 2023/08/27 16:30:57 grid power: 1952W
[site  ] DEBUG 2023/08/27 16:30:57 site power: 1952W
[lp-1  ] DEBUG 2023/08/27 16:30:57 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:30:57 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:57 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:30:57 detected active phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:30:57 charger status: C
[lp-1  ] DEBUG 2023/08/27 16:30:57 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:30:57 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:30:57 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:30:57 pv charge current: 0A = 0A + -8.49A (1952W @ 1p)
[site  ] DEBUG 2023/08/27 16:31:01 ----
[lp-1  ] DEBUG 2023/08/27 16:31:01 charge power: 1493W
[site  ] DEBUG 2023/08/27 16:31:04 pv power: 520W
[site  ] DEBUG 2023/08/27 16:31:06 grid power: 1940W
[site  ] DEBUG 2023/08/27 16:31:06 site power: 1940W
[lp-1  ] DEBUG 2023/08/27 16:31:06 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:31:06 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:31:06 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:31:06 detected active phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:31:06 charger status: C
[lp-1  ] DEBUG 2023/08/27 16:31:06 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:31:06 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:31:06 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:31:06 pv charge current: 0A = 0A + -8.43A (1940W @ 1p)
[site  ] DEBUG 2023/08/27 16:31:11 ----
[lp-1  ] DEBUG 2023/08/27 16:31:11 charge power: 1495W
[site  ] DEBUG 2023/08/27 16:31:13 pv power: 521W
[site  ] DEBUG 2023/08/27 16:31:14 grid power: 1916W
[site  ] DEBUG 2023/08/27 16:31:14 site power: 1916W
[lp-1  ] DEBUG 2023/08/27 16:31:14 charge voltages: [245 0 0]V
[lp-1  ] DEBUG 2023/08/27 16:31:14 detected connected phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:31:14 charge currents: [6.1 0 0]A
[lp-1  ] DEBUG 2023/08/27 16:31:14 detected active phases: 1p
[lp-1  ] DEBUG 2023/08/27 16:31:14 charger status: C
[lp-1  ] DEBUG 2023/08/27 16:31:14 vehicle soc: 89%
[lp-1  ] DEBUG 2023/08/27 16:31:14 vehicle soc limit: 91%
[lp-1  ] DEBUG 2023/08/27 16:31:14 vehicle range: 391km
[lp-1  ] DEBUG 2023/08/27 16:31:14 pv charge current: 0A = 0A + -8.33A (1916W @ 1p)
[site  ] DEBUG 2023/08/27 16:31:21 ----

`

infinus avatar Aug 27 '23 21:08 infinus

Could you please try 0.119.2 in a few minutes?

@DerAndereAndi falls @GrimmiMeloni richtig liegt wäre das ein Bug im Charger der durch die Änderungen am Loadpoint jetzt sichtbar wird. Ein "enabled=true" darf der LP eigentlich nicht zurück geben wenn er gleichzeitig lädt!

andig avatar Aug 28 '23 10:08 andig

"enabled=true"

Das sollte enabled=false heißen, oder?

GrimmiMeloni avatar Aug 28 '23 10:08 GrimmiMeloni

Danke für die Analyse @GrimmiMeloni Ich werde einen PR machen.

DerAndereAndi avatar Aug 28 '23 11:08 DerAndereAndi

We probably also need a fix for TWC, which we should track in a separate issue. That said @infinus can you please check if 0.119.2 changes anything for you? Thanks!

GrimmiMeloni avatar Aug 28 '23 15:08 GrimmiMeloni

I tested 0.119.2 and the TWC is unaffected it will still charge as soon as plugged in. @GrimmiMeloni It looks like https://github.com/evcc-io/evcc/issues/9540#issue-1867753011 has been opened by another user.

infinus avatar Aug 28 '23 15:08 infinus