evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Tesla: in PV mode, charge always starts at 5A despite min current being set to 1A, causing start/stop oscillation

Open FraBoCH opened this issue 3 months ago • 27 comments

Describe the bug

I have a Tesla charging on a Tesla Wall Connector Gen 3 (twc3). I configured the min current on the loadpoint to 1A (~700w with 3 phases) to charge even with few excess power. The problem is that in PV mode, the charge always starts at 5A, thus using more current than available and stopping, then starting again, and stopping, .... In Min+PV mode, the 1A is properly sent to the vehicle and taken into account. So the charge starts at ~700w and then increase/decrease properly with the available solar power in excess.

Steps to reproduce

  1. Configure min current of loadpoint to 1amp:
  2. Wait for enough solar current being generated to start charging (400w with my config)
  3. Charging starts, but at 5amps => 3.6kw and not at 1amp (~700w): image
  4. As the used power is now higher than the threshold (1200w with my config), it immediately decides to stop charging
  5. During all the disable delay, no try is made to reduce the current, it remains at 5amp during the whole delay (10min with my config).
  6. I am able to force the current being reduced to the expected 700w value by: setting min current of loadpoint to 2amp, wait for the order to be sent to the tesla, then set it again to 1amp. Or by switching to min+pv.

Configuration details

chargers:
- type: template
  template: twc3 
  host: 192.168.1.16
  name: wallbox

loadpoints:
- title: Garage
  charger: wallbox
  mode: pv
  enable:
    threshold: -400
    delay: 1m
  disable:
    threshold: 1200
    delay: 10m
    
vehicles:
- type: template
  template: tesla
  accessToken: ****
  refreshToken: ****
  vin: ****
  control: true
  name: tesla

Log details

[site  ] DEBUG 2024/03/17 14:45:42 grid currents: [-1.68 -1.31 1.84]A
[site  ] DEBUG 2024/03/17 14:45:42 site power: -396W
[lp-1  ] DEBUG 2024/03/17 14:45:42 charge voltages: [0 1.7 0]V
[lp-1  ] DEBUG 2024/03/17 14:45:42 charge currents: [0 0.3 0.4]A
[lp-1  ] DEBUG 2024/03/17 14:45:42 charger status: B
[lp-1  ] DEBUG 2024/03/17 14:45:42 pv charge current: 0.574A = 0A + 0.574A (-396W @ 3p)
[site  ] DEBUG 2024/03/17 14:46:12 ----
[lp-1  ] DEBUG 2024/03/17 14:46:12 charge power: 0W
[site  ] DEBUG 2024/03/17 14:46:12 pv power: 1410W
[site  ] DEBUG 2024/03/17 14:46:12 grid meter: -462W
[site  ] DEBUG 2024/03/17 14:46:12 grid powers: [-400 -331 268]W
[site  ] DEBUG 2024/03/17 14:46:12 grid currents: [-1.72 -1.6 1.89]A
[site  ] DEBUG 2024/03/17 14:46:12 site power: -462W
[lp-1  ] DEBUG 2024/03/17 14:46:12 charge voltages: [0 1.7 0]V
[lp-1  ] DEBUG 2024/03/17 14:46:12 charge currents: [0 0.3 0.4]A
[lp-1  ] DEBUG 2024/03/17 14:46:12 charger status: B
[lp-1  ] DEBUG 2024/03/17 14:46:12 pv charge current: 0.67A = 0A + 0.67A (-462W @ 3p)
[lp-1  ] DEBUG 2024/03/17 14:46:12 site power -462W <= -400W enable threshold
[lp-1  ] DEBUG 2024/03/17 14:46:12 pv enable timer start: 1m0s
[lp-1  ] DEBUG 2024/03/17 14:46:12 pv enable in 1m0s
[site  ] DEBUG 2024/03/17 14:46:42 ----
[lp-1  ] DEBUG 2024/03/17 14:46:42 charge power: 0W
[site  ] DEBUG 2024/03/17 14:46:42 pv power: 1446W
[site  ] DEBUG 2024/03/17 14:46:42 grid meter: -428W
[site  ] DEBUG 2024/03/17 14:46:42 grid powers: [-411 -272 254]W
[site  ] DEBUG 2024/03/17 14:46:42 grid currents: [-1.78 -1.44 1.89]A
[site  ] DEBUG 2024/03/17 14:46:42 site power: -428W
[lp-1  ] DEBUG 2024/03/17 14:46:42 charge voltages: [0 1.7 0]V
[lp-1  ] DEBUG 2024/03/17 14:46:42 charge currents: [0 0.3 0.4]A
[lp-1  ] DEBUG 2024/03/17 14:46:42 charger status: B
[lp-1  ] DEBUG 2024/03/17 14:46:42 pv charge current: 0.621A = 0A + 0.621A (-428W @ 3p)
[lp-1  ] DEBUG 2024/03/17 14:46:42 site power -428W <= -400W enable threshold
[lp-1  ] DEBUG 2024/03/17 14:46:42 pv enable in 30s
[lp-1  ] DEBUG 2024/03/17 14:46:42 pv enable timer remaining: 30s
[site  ] DEBUG 2024/03/17 14:47:12 ----
[lp-1  ] DEBUG 2024/03/17 14:47:12 charge power: 0W
[site  ] DEBUG 2024/03/17 14:47:42 pv power: 1551W
[site  ] DEBUG 2024/03/17 14:47:42 grid meter: -563W
[site  ] DEBUG 2024/03/17 14:47:42 grid powers: [-445 -347 230]W
[site  ] DEBUG 2024/03/17 14:47:42 grid currents: [-1.91 -1.5 1.78]A
[site  ] DEBUG 2024/03/17 14:47:42 site power: -563W
[lp-1  ] DEBUG 2024/03/17 14:47:42 charge voltages: [0 1.7 0]V
[lp-1  ] DEBUG 2024/03/17 14:47:42 charge currents: [0 0.3 0.4]A
[lp-1  ] DEBUG 2024/03/17 14:47:42 charger status: B
[lp-1  ] DEBUG 2024/03/17 14:47:42 pv charge current: 0.816A = 0A + 0.816A (-563W @ 3p)
[lp-1  ] DEBUG 2024/03/17 14:47:42 site power -563W <= -400W enable threshold
[lp-1  ] DEBUG 2024/03/17 14:47:42 pv enable in 0s
[lp-1  ] DEBUG 2024/03/17 14:47:42 pv enable timer elapsed
[lp-1  ] DEBUG 2024/03/17 14:47:44 charger enable: waking up vehicle
[lp-1  ] ERROR 2024/03/17 14:47:45 charger enable: asleep
[site  ] DEBUG 2024/03/17 14:48:12 ----
[lp-1  ] DEBUG 2024/03/17 14:48:12 charge power: 0W
[site  ] DEBUG 2024/03/17 14:48:12 pv power: 1605W
[site  ] DEBUG 2024/03/17 14:48:12 grid meter: -539W
[site  ] DEBUG 2024/03/17 14:48:12 grid powers: [-464 -317 248]W
[site  ] DEBUG 2024/03/17 14:48:12 grid currents: [-1.99 -1.63 1.77]A
[site  ] DEBUG 2024/03/17 14:48:12 site power: -539W
[lp-1  ] DEBUG 2024/03/17 14:48:12 charge voltages: [0 1.7 0]V
[lp-1  ] DEBUG 2024/03/17 14:48:12 charge currents: [0 0.3 0.4]A
[lp-1  ] DEBUG 2024/03/17 14:48:12 charger status: B
[lp-1  ] DEBUG 2024/03/17 14:48:12 pv charge current: 0.782A = 0A + 0.782A (-539W @ 3p)
[lp-1  ] DEBUG 2024/03/17 14:48:12 site power -539W <= -400W enable threshold
[lp-1  ] DEBUG 2024/03/17 14:48:12 pv enable in 0s
[lp-1  ] DEBUG 2024/03/17 14:48:12 pv enable timer elapsed
[lp-1  ] DEBUG 2024/03/17 14:48:13 charger enable
[lp-1  ] DEBUG 2024/03/17 14:48:13 wake-up timer: start
[site  ] DEBUG 2024/03/17 14:48:42 ----
[lp-1  ] DEBUG 2024/03/17 14:48:42 charge power: 3638W
[site  ] DEBUG 2024/03/17 14:48:42 pv power: 1708W
[site  ] DEBUG 2024/03/17 14:48:42 grid meter: 2922W
[site  ] DEBUG 2024/03/17 14:48:42 grid powers: [718 787 1416]W
[site  ] DEBUG 2024/03/17 14:48:42 grid currents: [3.11 3.72 6.12]A
[site  ] DEBUG 2024/03/17 14:48:42 site power: 2922W
[lp-1  ] DEBUG 2024/03/17 14:48:42 charge voltages: [237 238 238]V
[lp-1  ] DEBUG 2024/03/17 14:48:42 detected connected phases: 3p
[lp-1  ] DEBUG 2024/03/17 14:48:42 charge currents: [5.1 5.1 5.1]A
[lp-1  ] DEBUG 2024/03/17 14:48:42 charger status: C
[lp-1  ] INFO 2024/03/17 14:48:42 start charging ->
[lp-1  ] DEBUG 2024/03/17 14:48:42 wake-up timer: stop
[lp-1  ] DEBUG 2024/03/17 14:48:43 vehicle soc: 60%
[lp-1  ] DEBUG 2024/03/17 14:48:43 vehicle soc limit: 80%
[lp-1  ] DEBUG 2024/03/17 14:48:43 vehicle range: 286km
[lp-1  ] DEBUG 2024/03/17 14:48:43 pv charge current: 0A = 1A + -4.23A (2922W @ 3p)
[lp-1  ] DEBUG 2024/03/17 14:48:43 projected site power 2922W >= 1200W disable threshold
[lp-1  ] DEBUG 2024/03/17 14:48:43 pv disable in 7m30s
[lp-1  ] DEBUG 2024/03/17 14:48:43 pv disable timer remaining: 7m30s

What type of operating system are you running?

HomeAssistant Add-on

Version

0.124.10

FraBoCH avatar Mar 17 '24 14:03 FraBoCH