evcc-io / evcc

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

OCPP Current Mismatch - sits at 8A when solar excess greater #16843

Open t3h-n00b opened 5 hours ago

t3h-n00b commented 5 hours ago

Describe the bug

Charger sits at 8A in Solar mode (when solar excess is >8A)

Steps to reproduce

  1. Whenever the solar excess is >8A, the EV charges at 8A
  2. Errors are reported - confirmed that the charge rate is actually 8A however [lp-1 ] WARN 2024/10/25 11:50:06 charger logic error: current mismatch (got 8A, expected 19.6A)
  3. Fast charging (32A) works fine, Min charging (6A) also works fine. Also works fine if the excess is <8A (ie, if it needs to set 7.5A, works fine)

evcc-20241025-120346-debug.log

evcc-20241025-113333-trace.log evcc-20241025-120355-trace.log

Configuration details

# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:
  - name: grid_usage
    type: custom
    usage: grid
    power:
      source: http
      uri: http://192.168.2.20/emeter/0
      jq: .power
  - name: solar_generation
    type: template
    template: shelly-1pm
    usage: pv
    host: 192.168.2.20 # IP address or hostname
    user: # User account (e.g. email address, user id, etc.) (optional)
    password: # Password of the user account (use single quotes in case of leading zeros) (optional)
    channel: 1 # optional

# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers
chargers:
- name: EVSwitch
  type: template
  template: ocpp
  stationid: ***SERIAL*** # Station ID of the charging point. Only required if multiple OCPP charging stations are set up to assign them correctly.

# vehicle definitions
vehicles:
  - name: mustang_mache
    type: offline
    title: Mustang Mach-E # display name for UI
    capacity: 72 # battery capacity (kWh)

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
    grid: grid_usage # grid meter not yet available
    pv:
      - solar_generation # list of pv inverters/ meters
  maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Home # display name for UI
    charger: EVSwitch # charger
    mode: "off" # default charge mode to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available

    # remaining settings are experts-only and best left at default values
    priority: 0 # relative priority for concurrent charging in PV mode with multiple loadpoints (higher values have higher priority)
    enable: # pv mode enable behavior
      delay: 30s # threshold must be exceeded for this long
      threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
    disable: # pv mode disable behavior
      delay: 1m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)

Log details

Attached

What type of operating system are you running?

Linux

Nightly build

Version

evcc version 0.131.0 (0d18d670)

t3h-n00b commented 5 hours ago

Alright, something must have changed somewhere in my settings, as my fast charging at 32A yesterday is now occuring at 8A. Given there is nothing in my config for 8A, could it be somewhere else?

t3h-n00b commented 3 hours ago

After a bit more digging, this appears to be version related. Rolling back to 0.130.7 seems to have fixed my issues (I didn't roll back to any versions between .7 and .131 yet to test where the bug was introduced).