evcc-io / evcc

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

Vehicles identification via RFID should overrule id via status api #1636

Closed Chris591 closed 2 years ago

Chris591 commented 2 years ago

Describe the bug 2 Cars configured with 2 LP's and both cars configured to both LP's then you can run into following issue: If you connect 2 Cars to 2 Wallboxes nearly at the same time or if you restart EVCC during both Cars are connected. The identification isn't working EVCC don't know which Car is connected to which LP. But as I got RFID identification it should and it is identifying them correctly for a very short time.

To Reproduce Steps to reproduce the behavior: If you connect 2 Cars to 2 Wallboxes nearly at the same time or if you restart EVCC during both Cars are connected.

Expected behavior if you use RFID tokens it should stop trying to identify the Car by which is connected.

EVCC details: Show output of evcc -v:

evcc version 0.64 (d2e3c47)
Show output of evcc dump -c configfile:
config
======

grid: grid
----------
Power:          11331W
Current L1..L3: 16.4A 16.4A 16.9A

loadpoint 1
===========

charger: Einfahrt
-----------------
Power:          10670W
Energy:         996.1kWh
Current L1..L3: 15.7A 15.7A 15.6A
Charge status:  C
Enabled:        true
Duration:       5m38s
Identifier:     xxxxx

vehicle 0
---------
.SoC:          38%
Charge status: C
Capacity:      88kWh
Range:         148km
Identifier:    xxxxx

vehicle 1
---------
SoC:            100%
Charge status:  B
Capacity:       11kWh
Range:          48km
Finish time:    not available
Climate active: false
Outside temp:   17.1°C
Target temp:    20.0°C
Identifier:     yyyyy

loadpoint 2
===========

charger: Garage
---------------
Power:          0W
Energy:         115.3kWh
Current L1..L3: 0A 0A 0A
Charge status:  B
Enabled:        true
Duration:       22s
Identifier:     yyyyy

vehicle 0
---------
SoC:            100%
Charge status:  B
Capacity:       11kWh
Range:          48km
Finish time:    not available
Climate active: false
Outside temp:   17.1°C
Target temp:    20.0°C
Identifier:     yyyyy

vehicle 1
---------
SoC:           38%
Charge status: C
Capacity:      88kWh
Range:         148km
Identifier:    xxxxx
Show evcc configuration file evcc.yaml:

interval: 10s # control cycle interval
uri: 0.0.0.0:7070 # uri for ui

# log settings
log: error
levels:
  core: debug
  lp-1: debug
  lp-2: debug

# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for examples see https://github.com/andig/evcc-config#meters
meters:
- name: grid
  type: custom
  power: # power reading
    type: mqtt # use mqtt plugin
    topic: mbmd/sdm1-1/Power # mqtt topic
    timeout: 10s # don't use older values
  Currents:
    - type: mqtt # use mqtt plugin
      topic: mbmd/sdm1-1/Current/L1 # mqtt topic
      timeout: 10s # don't use older values
    - type: mqtt # use mqtt plugin
      topic: mbmd/sdm1-1/Current/L2 # mqtt topic
      timeout: 10s # don't use older values
    - type: mqtt # use mqtt plugin
      topic: mbmd/sdm1-1/Current/L3 # mqtt topic
      timeout: 10s # don't use older values

#- name: pv
#  type: ...
#- name: battery
#  type: ...
#- name: charge
#  type: ...

# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for examples see https://github.com/andig/evcc-config#chargers
chargers:
- name: Garage
  type: evsewifi
  uri: http://10.20.1.16
- name: Einfahrt
  type: evsewifi
  uri: http://10.20.1.13

# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for examples see https://github.com/andig/evcc-config#vehicles
vehicles:
- name: Cubra
  type: seat
  identifier: yyyyy # RFID token
  title: Cubra Leon
  capacity: 11 # kWh
  user: abc
  password: xxxxx
  vin: xxxxx
  cache: 5m
- type: ford
  name: Mustang
  identifier: xxxxx # RFID token
  title: Mustang Mach-E # display name for UI
  capacity: 88 # kWh
  user: abc
  password: "xxxxx"
  vin: xxxxx # optional
  cache: 5m

# site describes the EVU connection, PV and home battery
site:
  title: Home
  meters:
    grid: grid # grid meter
#    pv: pv # pv meter
#    battery: battery # battery meter
  prioritySoC: 60 # give home battery priority up to this soc (0 to disable)

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
- title: Einfahrt
  charger: Einfahrt
  vehicles:
    - Mustang
    - Cubra
  OnIdentify: # set defaults when vehicle is identified
    - xxxxx: # Mustang
        mode: "now" # mode
        targetSoC: 80 # charge to 100%
#        MaxCurrent: 10
#        MinCurrent: 6
    - yyyyy: # Cubra
        mode: "now" # mode
        targetSoC: 100 # charge to 100%
#        MaxCurrent: 16
#        MinCurrent: 6
  mode: "off"
  soc:
    # polling defines usage of the vehicle APIs
    # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
    # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
    poll:
      # poll mode defines under which condition the vehicle API is called:
      #   charging: update vehicle ONLY when charging (this is the recommended default)
      #   connected: update vehicle when connected (not only charging), interval defines how often
      #   always: always update vehicle regardless of connection state, interval defines how often
      mode: charging
      # poll interval defines how often the vehicle API may be polled if NOT charging
      interval: 60m
    min: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    target: 0 # use onDisconnect targetSoC
    estimate: true # set true to interpolate between api updates
  onDisconnect: # set defaults when vehicle disconnects
    mode: "off" # switch back to pv mode
    targetSoC: 100 # charge to 100%
  phases: 3 # ev phases (default 3)
  enable: # pv mode enable behavior
    delay: 1m # threshold must be exceeded for this long
    threshold: 0 # minimum export power (W). If zero, export must exceed minimum charge power to enable
  disable: # pv mode disable behavior
    delay: 10m # threshold must be exceeded for this long
    threshold: 200 # maximum import power (W)
  guardduration: 5m # switch charger contactor not more often than this (default 10m)
  mincurrent: 6 # minimum charge current (default 6A)
  maxcurrent: 16 # maximum charge current (default 16A)
- title: Garage
  charger: Garage
  vehicles:
    - Cubra
    - Mustang
  OnIdentify: # set defaults when vehicle is identified
    - xxxxx: # Mustang
        mode: "now" # mode
        targetSoC: 80 # charge to 100%
#        MaxCurrent: 10
#        MinCurrent: 6
    - yyyyy: # Cubra
        mode: "now" # mode
        targetSoC: 100 # charge to 100%
#        MaxCurrent: 16
#        MinCurrent: 6
  mode: "off"
  soc:
    # polling defines usage of the vehicle APIs
    # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
    # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
    poll:
      # poll mode defines under which condition the vehicle API is called:
      #   charging: update vehicle ONLY when charging (this is the recommended default)
      #   connected: update vehicle when connected (not only charging), interval defines how often
      #   always: always update vehicle regardless of connection state, interval defines how often
      mode: charging
      # poll interval defines how often the vehicle API may be polled if NOT charging
      interval: 60m
    min: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    target: 0 # use onDisconnect targetSoC
    estimate: true # set true to interpolate between api updates
  onDisconnect: # set defaults when vehicle disconnects
    mode: "off" # switch back to pv mode
    targetSoC: 100 # charge to 100%
  phases: 3 # ev phases (default 3)
  enable: # pv mode enable behavior
    delay: 1m # threshold must be exceeded for this long
    threshold: 0 # minimum export power (W). If zero, export must exceed minimum charge power to enable
  disable: # pv mode disable behavior
    delay: 10m # threshold must be exceeded for this long
    threshold: 200 # maximum import power (W)
  guardduration: 5m # switch charger contactor not more often than this (default 10m)
  mincurrent: 6 # minimum charge current (default 6A)
  maxcurrent: 16 # maximum charge current (default 16A)

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

# influx database
influx:
  url: http://10.20.1.10:8086
  database: evcc
  user: evcc
  password: xxxxx

# push messages
messaging:
  events:
    start: # charge start event
      title: Charge started
      msg: Started charging in "${mode}" mode
    stop: # charge stop event
      title: Charge finished
      msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.
    connect: # vehicle connect event
      title: Car connected
      msg: "Car connected at ${pvPower:%.1fk}kW PV"
    disconnect: # vehicle connected event
      title: Car disconnected
      msg: Car disconnected after ${connectedDuration}
  services:
  # - type: pushover
  #   app: # app id
  #   recipients:
  #   - # list of recipient ids
  # - type: telegram
  #   token: # bot id
  #   chats:
  #   - # list of chat ids
  # - type: email
  #   uri: smtp://:@:/?fromAddress=&toAddresses=

Show evcc log output with --log debug:
[main  ] INFO 2021/09/26 18:26:56 evcc 0.64 (d2e3c47)
[main  ] INFO 2021/09/26 18:26:56 using config file /etc/evcc.yaml
[main  ] INFO 2021/09/26 18:26:56 listening at 0.0.0.0:7070
[mqtt  ] INFO 2021/09/26 18:26:56 connecting evcc-1147694172 at 10.201.1.10:1883
[mqtt  ] DEBUG 2021/09/26 18:26:56 10.201.1.10:1883 connected
[cache ] DEBUG 2021/09/26 18:26:58 title: Einfahrt
[cache ] DEBUG 2021/09/26 18:26:58 minCurrent: 6
[cache ] DEBUG 2021/09/26 18:26:58 maxCurrent: 16
[cache ] DEBUG 2021/09/26 18:26:58 phases: 3
[cache ] DEBUG 2021/09/26 18:26:58 activePhases: 3
[cache ] DEBUG 2021/09/26 18:26:58 hasVehicle: true
[cache ] DEBUG 2021/09/26 18:26:58 mode: off
[cache ] DEBUG 2021/09/26 18:26:58 targetSoC: 100
[cache ] DEBUG 2021/09/26 18:26:58 minSoC: 0
[cache ] DEBUG 2021/09/26 18:26:58 title: Garage
[cache ] DEBUG 2021/09/26 18:26:58 minCurrent: 6
[cache ] DEBUG 2021/09/26 18:26:58 maxCurrent: 16
[cache ] DEBUG 2021/09/26 18:26:58 phases: 3
[cache ] DEBUG 2021/09/26 18:26:58 activePhases: 3
[cache ] DEBUG 2021/09/26 18:26:58 hasVehicle: true
[cache ] DEBUG 2021/09/26 18:26:58 mode: off
[cache ] DEBUG 2021/09/26 18:26:58 targetSoC: 100
[cache ] DEBUG 2021/09/26 18:26:58 minSoC: 0
[lp-2  ] DEBUG 2021/09/26 18:26:59 max charge current: 6A
[site  ] INFO 2021/09/26 18:26:59 site config:
[site  ] INFO 2021/09/26 18:26:59   meters:    grid ✓ pv ✗ battery ✗
[cache ] DEBUG 2021/09/26 18:26:59 siteTitle: Home
[cache ] DEBUG 2021/09/26 18:26:59 chargeCurrent: 6
[site  ] INFO 2021/09/26 18:26:59     grid:    power ✓ energy ✗ currents ✓
[cache ] DEBUG 2021/09/26 18:26:59 gridConfigured: true
[cache ] DEBUG 2021/09/26 18:26:59 pvConfigured: false
[cache ] DEBUG 2021/09/26 18:26:59 batteryConfigured: false
[lp-1  ] INFO 2021/09/26 18:26:59 loadpoint 1:
[lp-1  ] INFO 2021/09/26 18:26:59   mode:      off
[lp-1  ] INFO 2021/09/26 18:26:59   charger:   power ✓ energy ✓ currents ✓ timer ✓
[lp-1  ] INFO 2021/09/26 18:26:59   meters:    charge ✓
[lp-1  ] INFO 2021/09/26 18:26:59     charge:  power ✓ energy ✓ currents ✓
[lp-1  ] INFO 2021/09/26 18:26:59   vehicles:  ✓
[lp-1  ] INFO 2021/09/26 18:26:59     car 0:   range ✓ finish ✗ status ✓ climate ✗
[lp-1  ] INFO 2021/09/26 18:26:59     car 1:   range ✓ finish ✓ status ✓ climate ✓
[lp-2  ] INFO 2021/09/26 18:26:59 loadpoint 2:
[lp-2  ] INFO 2021/09/26 18:26:59   mode:      off
[lp-2  ] INFO 2021/09/26 18:26:59   charger:   power ✓ energy ✓ currents ✓ timer ✓
[lp-2  ] INFO 2021/09/26 18:26:59   meters:    charge ✓
[lp-2  ] INFO 2021/09/26 18:26:59     charge:  power ✓ energy ✓ currents ✓
[lp-2  ] INFO 2021/09/26 18:26:59   vehicles:  ✓
[lp-2  ] INFO 2021/09/26 18:26:59     car 0:   range ✓ finish ✓ status ✓ climate ✓
[lp-2  ] INFO 2021/09/26 18:26:59     car 1:   range ✓ finish ✗ status ✓ climate ✗
[cache ] DEBUG 2021/09/26 18:26:59 chargeConfigured: true
[cache ] DEBUG 2021/09/26 18:26:59 chargeConfigured: true
[site  ] DEBUG 2021/09/26 18:26:59 ----
[site  ] DEBUG 2021/09/26 18:26:59 grid power: 572W
[site  ] DEBUG 2021/09/26 18:26:59 grid currents: [0.844 0.485 1.31]A
[site  ] DEBUG 2021/09/26 18:26:59 site power: 572W
[cache ] DEBUG 2021/09/26 18:26:59 gridPower: 571.676
[cache ] DEBUG 2021/09/26 18:26:59 gridCurrents: [0.844 0.485 1.309]
[cache ] DEBUG 2021/09/26 18:26:59 mode: off
[lp-1  ] DEBUG 2021/09/26 18:26:59 charge power: 0W
[cache ] DEBUG 2021/09/26 18:26:59 chargePower: 0
[lp-1  ] DEBUG 2021/09/26 18:26:59 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:26:59 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:26:59 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:26:59 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:26:59 chargeDuration: 9s
[lp-1  ] DEBUG 2021/09/26 18:26:59 charger status: B
[cache ] DEBUG 2021/09/26 18:26:59 connectedDuration: 0s
[cache ] DEBUG 2021/09/26 18:26:59 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:26:59 connected: true
[cache ] DEBUG 2021/09/26 18:26:59 charging: false
[cache ] DEBUG 2021/09/26 18:26:59 enabled: false
[lp-1  ] DEBUG 2021/09/26 18:26:59 charger vehicle id: yyyyy
[lp-1  ] INFO 2021/09/26 18:26:59 vehicle updated: unknown -> Mustang Mach-E
[cache ] DEBUG 2021/09/26 18:26:59 vehicleIdentity: yyyyy
[lp-1  ] DEBUG 2021/09/26 18:26:59 running vehicle action: {now 80}
[lp-1  ] INFO 2021/09/26 18:26:59 set charge mode: now
[cache ] DEBUG 2021/09/26 18:26:59 vehiclePresent: true
[cache ] DEBUG 2021/09/26 18:26:59 vehicleTitle: Mustang Mach-E
[cache ] DEBUG 2021/09/26 18:26:59 vehicleCapacity: 88
[lp-1  ] INFO 2021/09/26 18:26:59 set target soc: 80
[cache ] DEBUG 2021/09/26 18:26:59 mode: now
[cache ] DEBUG 2021/09/26 18:26:59 targetSoC: 80
[ford  ] DEBUG 2021/09/26 18:27:00 vehicle status is outdated (age 35m15.527285314s > 5m0s), requesting refresh
[lp-1  ] ERROR 2021/09/26 18:27:01 vehicle status: must retry
[lp-1  ] DEBUG 2021/09/26 18:27:01 vehicle status: B (Cubra Leon)
[lp-1  ] INFO 2021/09/26 18:27:01 vehicle updated: Mustang Mach-E -> Cubra Leon
[lp-1  ] DEBUG 2021/09/26 18:27:01 vehicle soc: 100%
[cache ] DEBUG 2021/09/26 18:27:01 vehiclePresent: true
[cache ] DEBUG 2021/09/26 18:27:01 vehicleTitle: Cubra Leon
[cache ] DEBUG 2021/09/26 18:27:01 vehicleCapacity: 11
[cache ] DEBUG 2021/09/26 18:27:01 vehicleSoc: 100
[lp-1  ] DEBUG 2021/09/26 18:27:01 vehicle range: 48km
[cache ] DEBUG 2021/09/26 18:27:01 chargeRemainingDuration: -1ns
[cache ] DEBUG 2021/09/26 18:27:01 range: 48
[lp-1  ] DEBUG 2021/09/26 18:27:01 targetSoC reached: 100.0 > 80
[lp-1  ] DEBUG 2021/09/26 18:27:01 climater active: false, target temp: 20.0°C, outside temp: 17.1°C
[site  ] DEBUG 2021/09/26 18:27:01 ----
[site  ] DEBUG 2021/09/26 18:27:01 grid power: 546W
[site  ] DEBUG 2021/09/26 18:27:01 grid currents: [0.754 0.486 1.31]A
[site  ] DEBUG 2021/09/26 18:27:01 site power: 546W
[cache ] DEBUG 2021/09/26 18:27:01 gridPower: 545.945
[cache ] DEBUG 2021/09/26 18:27:01 gridCurrents: [0.754 0.486 1.311]
[cache ] DEBUG 2021/09/26 18:27:01 climater: off
[cache ] DEBUG 2021/09/26 18:27:01 mode: now
[lp-1  ] DEBUG 2021/09/26 18:27:01 charge power: 0W
[cache ] DEBUG 2021/09/26 18:27:01 chargePower: 0
[lp-1  ] DEBUG 2021/09/26 18:27:01 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:27:01 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:27:01 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:01 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:01 chargeDuration: 9s
[lp-1  ] DEBUG 2021/09/26 18:27:01 charger status: B
[cache ] DEBUG 2021/09/26 18:27:01 connected: true
[cache ] DEBUG 2021/09/26 18:27:01 charging: false
[cache ] DEBUG 2021/09/26 18:27:01 enabled: false
[lp-1  ] ERROR 2021/09/26 18:27:01 vehicle status: must retry
[lp-1  ] DEBUG 2021/09/26 18:27:01 vehicle status: B (Cubra Leon)
[lp-1  ] DEBUG 2021/09/26 18:27:01 targetSoC reached: 100.0 > 80
[lp-1  ] DEBUG 2021/09/26 18:27:01 climater active: false, target temp: 20.0°C, outside temp: 17.1°C
[cache ] DEBUG 2021/09/26 18:27:01 climater: off
[site  ] DEBUG 2021/09/26 18:27:09 ----
[site  ] DEBUG 2021/09/26 18:27:09 grid power: 617W
[site  ] DEBUG 2021/09/26 18:27:09 grid currents: [0.946 0.484 1.3]A
[cache ] DEBUG 2021/09/26 18:27:09 gridPower: 617.172
[cache ] DEBUG 2021/09/26 18:27:09 gridCurrents: [0.946 0.484 1.304]
[site  ] DEBUG 2021/09/26 18:27:09 site power: 617W
[cache ] DEBUG 2021/09/26 18:27:09 mode: off
[lp-2  ] DEBUG 2021/09/26 18:27:09 charge power: 0W
[cache ] DEBUG 2021/09/26 18:27:09 chargePower: 0
[lp-2  ] DEBUG 2021/09/26 18:27:09 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:27:09 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:27:09 chargeCurrent: 6
[cache ] DEBUG 2021/09/26 18:27:09 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:09 chargeDuration: 21s
[lp-2  ] DEBUG 2021/09/26 18:27:10 charger status: B
[cache ] DEBUG 2021/09/26 18:27:10 connectedDuration: 0s
[cache ] DEBUG 2021/09/26 18:27:10 chargeCurrent: 6
[cache ] DEBUG 2021/09/26 18:27:10 connected: true
[cache ] DEBUG 2021/09/26 18:27:10 charging: false
[cache ] DEBUG 2021/09/26 18:27:10 enabled: true
[lp-2  ] DEBUG 2021/09/26 18:27:10 charger vehicle id: xxxxx
[lp-2  ] INFO 2021/09/26 18:27:10 vehicle updated: unknown -> Cubra Leon
[lp-2  ] DEBUG 2021/09/26 18:27:10 running vehicle action: {now 100}
[lp-2  ] INFO 2021/09/26 18:27:10 set charge mode: now
[cache ] DEBUG 2021/09/26 18:27:10 vehicleIdentity: xxxxx
[cache ] DEBUG 2021/09/26 18:27:10 vehiclePresent: true
[cache ] DEBUG 2021/09/26 18:27:10 vehicleTitle: Cubra Leon
[cache ] DEBUG 2021/09/26 18:27:10 vehicleCapacity: 11
[cache ] DEBUG 2021/09/26 18:27:10 mode: now
[lp-2  ] INFO 2021/09/26 18:27:10 set target soc: 100
[lp-2  ] DEBUG 2021/09/26 18:27:10 vehicle status: B (Cubra Leon)
[lp-2  ] ERROR 2021/09/26 18:27:10 vehicle status: must retry
[lp-2  ] DEBUG 2021/09/26 18:27:10 vehicle soc: 100%
[cache ] DEBUG 2021/09/26 18:27:10 vehicleSoc: 100
[cache ] DEBUG 2021/09/26 18:27:10 chargeRemainingDuration: -1ns
[lp-2  ] DEBUG 2021/09/26 18:27:10 vehicle range: 48km
[cache ] DEBUG 2021/09/26 18:27:10 range: 48
[lp-2  ] DEBUG 2021/09/26 18:27:10 charger disable
[site  ] DEBUG 2021/09/26 18:27:11 ----
[site  ] DEBUG 2021/09/26 18:27:11 grid power: 578W
[cache ] DEBUG 2021/09/26 18:27:11 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:11 gridPower: 577.594
[site  ] DEBUG 2021/09/26 18:27:11 grid currents: [0.881 0.484 1.3]A
[site  ] DEBUG 2021/09/26 18:27:11 site power: 578W
[cache ] DEBUG 2021/09/26 18:27:11 gridCurrents: [0.881 0.484 1.304]
[cache ] DEBUG 2021/09/26 18:27:11 mode: now
[lp-2  ] DEBUG 2021/09/26 18:27:11 charge power: 0W
[cache ] DEBUG 2021/09/26 18:27:11 chargePower: 0
[lp-2  ] DEBUG 2021/09/26 18:27:11 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:27:11 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:27:11 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:11 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:11 chargeDuration: 21s
[lp-2  ] DEBUG 2021/09/26 18:27:11 charger status: B
[cache ] DEBUG 2021/09/26 18:27:11 connected: true
[cache ] DEBUG 2021/09/26 18:27:11 charging: false
[cache ] DEBUG 2021/09/26 18:27:11 enabled: false
[lp-2  ] DEBUG 2021/09/26 18:27:11 vehicle status: B (Cubra Leon)
[lp-2  ] ERROR 2021/09/26 18:27:11 vehicle status: must retry
[lp-2  ] WARN 2021/09/26 18:27:11 charger out of sync: expected disabled, got enabled
[lp-2  ] DEBUG 2021/09/26 18:27:11 max charge current: 16A
[lp-2  ] DEBUG 2021/09/26 18:27:11 charger enable
[cache ] DEBUG 2021/09/26 18:27:11 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:11 chargeCurrent: 16
[site  ] DEBUG 2021/09/26 18:27:19 ----
[site  ] DEBUG 2021/09/26 18:27:19 grid power: 652W
[site  ] DEBUG 2021/09/26 18:27:19 grid currents: [2.54 0.479 1.3]A
[site  ] DEBUG 2021/09/26 18:27:19 site power: 652W
[cache ] DEBUG 2021/09/26 18:27:19 gridPower: 651.77
[cache ] DEBUG 2021/09/26 18:27:19 gridCurrents: [2.536 0.479 1.302]
[cache ] DEBUG 2021/09/26 18:27:19 mode: now
[lp-1  ] DEBUG 2021/09/26 18:27:19 charge power: 0W
[cache ] DEBUG 2021/09/26 18:27:19 chargePower: 0
[lp-1  ] DEBUG 2021/09/26 18:27:19 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:27:19 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:27:19 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:19 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:19 chargeDuration: 9s
[lp-1  ] DEBUG 2021/09/26 18:27:19 charger status: B
[cache ] DEBUG 2021/09/26 18:27:19 connected: true
[cache ] DEBUG 2021/09/26 18:27:19 charging: false
[cache ] DEBUG 2021/09/26 18:27:19 enabled: false
[lp-1  ] ERROR 2021/09/26 18:27:19 vehicle status: must retry
[lp-1  ] INFO 2021/09/26 18:27:19 vehicle updated: Cubra Leon -> unknown
[cache ] DEBUG 2021/09/26 18:27:19 vehiclePresent: false
[cache ] DEBUG 2021/09/26 18:27:19 vehicleTitle: 
[cache ] DEBUG 2021/09/26 18:27:19 vehicleCapacity: 0
[cache ] DEBUG 2021/09/26 18:27:19 vehicleOdometer: 0
[lp-1  ] DEBUG 2021/09/26 18:27:19 max charge current: 16A
[lp-1  ] DEBUG 2021/09/26 18:27:19 charger enable
[cache ] DEBUG 2021/09/26 18:27:19 chargeCurrent: 0
[cache ] DEBUG 2021/09/26 18:27:19 chargeCurrent: 16
[site  ] DEBUG 2021/09/26 18:27:29 ----
[site  ] DEBUG 2021/09/26 18:27:29 grid power: 550W
[site  ] DEBUG 2021/09/26 18:27:29 grid currents: [1.56 0.787 1.38]A
[site  ] DEBUG 2021/09/26 18:27:29 site power: 550W
[cache ] DEBUG 2021/09/26 18:27:29 gridPower: 550.329
[cache ] DEBUG 2021/09/26 18:27:29 gridCurrents: [1.559 0.787 1.38]
[cache ] DEBUG 2021/09/26 18:27:29 mode: now
[lp-2  ] DEBUG 2021/09/26 18:27:29 charge power: 10W
[cache ] DEBUG 2021/09/26 18:27:29 chargePower: 10
[lp-2  ] DEBUG 2021/09/26 18:27:29 charge currents: [0.472 0 0]A
[cache ] DEBUG 2021/09/26 18:27:29 chargeCurrents: [0.472092 0 0]
[cache ] DEBUG 2021/09/26 18:27:29 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:29 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:29 chargeDuration: 9s
[lp-2  ] DEBUG 2021/09/26 18:27:30 charger status: C
[lp-2  ] DEBUG 2021/09/26 18:27:30 charge start energy: 115kWh
[lp-2  ] INFO 2021/09/26 18:27:30 start charging ->
[cache ] DEBUG 2021/09/26 18:27:30 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:30 connected: true
[cache ] DEBUG 2021/09/26 18:27:30 charging: true
[cache ] DEBUG 2021/09/26 18:27:30 enabled: true
[lp-2  ] DEBUG 2021/09/26 18:27:30 vehicle status: B (Cubra Leon)
[lp-2  ] DEBUG 2021/09/26 18:27:30 vehicle status: B (Mustang Mach-E)
[lp-2  ] DEBUG 2021/09/26 18:27:30 vehicle status: >1 matches, giving up
[lp-2  ] INFO 2021/09/26 18:27:30 vehicle updated: Cubra Leon -> unknown
[cache ] DEBUG 2021/09/26 18:27:30 vehiclePresent: false
[cache ] DEBUG 2021/09/26 18:27:30 vehicleTitle: 
[cache ] DEBUG 2021/09/26 18:27:30 vehicleCapacity: 0
[cache ] DEBUG 2021/09/26 18:27:30 vehicleOdometer: 0
[site  ] DEBUG 2021/09/26 18:27:39 ----
[site  ] DEBUG 2021/09/26 18:27:39 grid power: 2247W
[site  ] DEBUG 2021/09/26 18:27:39 grid currents: [3.64 2.96 3.64]A
[site  ] DEBUG 2021/09/26 18:27:39 site power: 2247W
[cache ] DEBUG 2021/09/26 18:27:39 gridPower: 2247.225
[cache ] DEBUG 2021/09/26 18:27:39 gridCurrents: [3.644 2.959 3.643]
[cache ] DEBUG 2021/09/26 18:27:39 mode: now
[lp-1  ] DEBUG 2021/09/26 18:27:39 charge power: 1860W
[cache ] DEBUG 2021/09/26 18:27:39 chargePower: 1860
[lp-1  ] DEBUG 2021/09/26 18:27:39 charge currents: [2.89 2.87 2.86]A
[cache ] DEBUG 2021/09/26 18:27:39 chargeCurrents: [2.894532 2.872127 2.857533]
[cache ] DEBUG 2021/09/26 18:27:39 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:39 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:39 chargeDuration: 13s
[lp-1  ] DEBUG 2021/09/26 18:27:39 charger status: C
[lp-1  ] DEBUG 2021/09/26 18:27:39 charge start energy: 995kWh
[lp-1  ] INFO 2021/09/26 18:27:39 start charging ->
[cache ] DEBUG 2021/09/26 18:27:39 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:39 connected: true
[cache ] DEBUG 2021/09/26 18:27:39 charging: true
[cache ] DEBUG 2021/09/26 18:27:39 enabled: true
[lp-1  ] DEBUG 2021/09/26 18:27:39 vehicle status: B (Mustang Mach-E)
[lp-1  ] DEBUG 2021/09/26 18:27:39 vehicle status: B (Cubra Leon)
[lp-1  ] DEBUG 2021/09/26 18:27:39 vehicle status: >1 matches, giving up
[site  ] DEBUG 2021/09/26 18:27:49 ----
[site  ] DEBUG 2021/09/26 18:27:49 grid power: 5900W
[site  ] DEBUG 2021/09/26 18:27:49 grid currents: [8.8 8.17 8.86]A
[site  ] DEBUG 2021/09/26 18:27:49 site power: 5900W
[cache ] DEBUG 2021/09/26 18:27:49 gridPower: 5899.51
[cache ] DEBUG 2021/09/26 18:27:49 gridCurrents: [8.798 8.167 8.856]
[cache ] DEBUG 2021/09/26 18:27:49 mode: now
[lp-2  ] DEBUG 2021/09/26 18:27:49 charge power: 0W
[cache ] DEBUG 2021/09/26 18:27:49 chargePower: 0
[lp-2  ] DEBUG 2021/09/26 18:27:49 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/26 18:27:49 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/26 18:27:49 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:50 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 18:27:50 chargeDuration: 22s
[lp-2  ] DEBUG 2021/09/26 18:27:50 charger status: B
[lp-2  ] DEBUG 2021/09/26 18:27:51 final charge energy: 0kWh
[lp-2  ] INFO 2021/09/26 18:27:51 stop charging <-
[cache ] DEBUG 2021/09/26 18:27:51 chargeCurrent: 16
[cache ] DEBUG 2021/09/26 18:27:51 connected: true
[cache ] DEBUG 2021/09/26 18:27:51 charging: false
[cache ] DEBUG 2021/09/26 18:27:51 enabled: true
[lp-2  ] DEBUG 2021/09/26 18:27:51 vehicle status: B (Cubra Leon)
[lp-2  ] DEBUG 2021/09/26 18:27:51 vehicle status: B (Mustang Mach-E)
[lp-2  ] DEBUG 2021/09/26 18:27:51 vehicle status: >1 matches, giving up

If using Docker: Show output of docker run andig/evcc -v:

evcc version 0.64 (d2e3c47)
Show evcc log output with docker logs :

andig commented 2 years ago

Ich kann in Deinem Log nicht erkennen, dass Du RFID verwendet hast. An welcher Stelle soll das passieren? Ansonsten hast Du natürlich recht- nach RFID Identifikation sollte es nicht mehr über den Status versucht werden.

andig commented 2 years ago

Ansonsten mache ich hier mal zu bis auch der relevante Teil der Config sowie evcc dump zu sehen ist.

Chris591 commented 2 years ago

[lp-1 ] DEBUG 2021/09/25 10:14:53 charger vehicle id: xxxxxx [lp-1 ] INFO 2021/09/25 10:14:53 vehicle updated: unknown -> Mustang Mach-E

und hier :

[lp-2 ] DEBUG 2021/09/25 10:15:03 charger vehicle id: yyyyyy [lp-2 ] INFO 2021/09/25 10:15:03 vehicle updated: unknown -> Cubra Leon

und dann kommt das hier : [lp-1 ] DEBUG 2021/09/25 10:14:54 vehicle status: >1 matches, giving up [lp-1 ] INFO 2021/09/25 10:14:54 vehicle updated: Mustang Mach-E -> unknown

und für lp-2 : [lp-2 ] DEBUG 2021/09/25 10:15:03 vehicle status: >1 matches, giving up [lp-2 ] INFO 2021/09/25 10:15:03 vehicle updated: Cubra Leon -> unknown

sorry hab es unter docker logs ;-)

Chris591 commented 2 years ago

Ich hoffe ich hab jetzt alles in den Bug Report hinzugefügt. Wenn noch was benötigt wird oder getestet werden soll bitte bescheid geben.

Chris591 commented 2 years ago

Hab das Problem grade wieder und etwas rum gesucht und denke das es hier am besten wäre.

loadpoint.go line 729: // vehicleUnidentified checks if loadpoint has multiple vehicles associated and starts discovery period func (lp *LoadPoint) vehicleUnidentified() bool { res := len(lp.vehicles) > 1 && lp.vehicleID == "" && lp.clock.Since(lp.vehicleConnected) < vehicleDetectDuration

nahklar würde es kein Auto mehr identifizieren wenn vehicleID ausgefüllt ist aber kein Auto diese ID hat und mehr als 1 Auto am LP möglich ist. habt ihr eine Bessere Idee oder seht ihr Probleme damit?

Chris591 commented 2 years ago

man könnte noch überprüfen ob ein Auto Identifiziert wurde "lp.vehicle != nil" dann würde man auch das Problem eines Autos das keine ID Zuordnung hat umgehen. Also so : res := len(lp.vehicles) > 1 && ( lp.vehicleID == "" || lp.vehicle == nil ) && lp.clock.Since(lp.vehicleConnected) < vehicleDetectDuration