evcc: In mode "now" evcc uses only maxcurrent from vehicle, no longer from loadpoint

Describe the bug

I have defined maxcurrent for the vehicle to 22A, but for my loadpoint only to 20A, since the line to my loadpoint does not support more than 20A.

Until version 0.123.0 my loading current was always 20A, no matter what mode I was using. With the new christmas version now my car loads with 22A, when I use mode “now”. I can confirm on my phoenix wallbox, that 22A is really set as limit.

I would expect, that the maxcurrent that the loadpoint is using, depends on the specified maxcurrent of the connected car AND the specified maxcurrent of the loadpoint, whatever is lower.

Steps to reproduce

  1. define maxcurrent of the car higher than maxcurrent of loadpoint
  2. charge with mode pv, check max. power value
  3. change to mode now (or charge to minSoc)
  4. check max. power value

Configuration details

vehicles:
- type: template
  template: carwings 
  title: Nissan Leaf  
  user: *** 
  password: ***  
  capacity: 40  
  phases: 1  
  icon: car  
  cache: 15m  
  #mode: pv  
  #minSoc: 30  
  #targetSoc: 80  
  minCurrent: 6  
  maxCurrent: 22  
  name: ev1

loadpoints:
- title: Garage Carmen
  charger: wallbox1
  vehicle: ev1
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 20
#  resetOnDisconnect: false
  soc:
    poll:
      mode: always
      interval: 720m

Log details

provided, if necessary.

What type of operating system are you running?

Linux

Version

0.123.2

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 17 (14 by maintainers)

Most upvoted comments

Unser Vorschlag (@premultiply) analog @DerAndereAndi:

  • minCurrent: Use the max of loadpoint, charger and vehicle minCurrent
  • maxCurrent: Use the min of loadpoint, charger and vehicle maxCurrent

Dabei:

  • Das Loadpoint-Minimum kann in der Config entfallen bzw. muss entfallen falls minCurrent < Loadpoint-Minimum erwünscht ist. Dafür gibt es in der Implementierung eine Standard 6A Untergrenze falls sonst nichts definiert ist (Case: EEbus)
  • Charger-Limits gibt es nur dynamisch, aber nicht aus der Konfiguration (Case: EEbus). Optional könnten diese Limits auch aus weiteren Chargern ausgelesen werden.

Offen:

  • Abweichende Konfiguration für 1p (out of scope)

Du meinst den unterschiedlichen minCurrent für 1p und 3p? Das wird doch heute auch nicht unterstützt wenn ich mich nicht irre. Daher wäre das dafür keine Lösung aber für alle anderen und damit besser als der Status Quo. Irre ich mich hier?

Um den Fall zu unterstützen, müsstet ihr wohl unterschiedliche minCurrent Einstellungen für 1p und 3p auf vehicle Ebene ermöglichen. Und dann je nach Lademodus (1p oder 3p an der Wallbox) den entsprechenden nehmen oder entsprechende der Phases Einstellung der Wallbox. Einen anderen Weg um dieses Problem zu lösen sehe ich nicht. Spricht aber jetzt auch imho nicht gegen den gemachten Vorschlag.