evcc-io / evcc

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

Improve vehicle detection by status #14457

Closed binderth closed 2 months ago

binderth commented 3 months ago

Describe the bug

Wenn sich der Status von custom-definierten Fahrzeugen ändert, hat das keine Änderungen für die evcc-Logik, welches Fahrzeug am Loadpoint aktuell lädt. Das ist wichtig, bei mehreren custom-definierten Fahrzeugen, dass sich deren aktueller IEC-Status auch auf evcc auswirkt.

Steps to reproduce

  1. Definiere zwei Custom-vehicles
  2. Vehicle-Informationen werden z.B. per MQTT geliefert
  3. erstes Fahrzeug am loadpoint abstecken
  4. zweites Fahrzeug am loadpoint anstecken
  5. erstes Fahrzeug bleibt aktiv am Loadpoint

In den Logs kann man erkennen, dass

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

  # per default, evcc should be available at http://evcc.local:7070

interval: 30s # control cycle interval
log: debug

meters:
# 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/evcc-io/config#meters
- type: custom
  name: PVErzeugung
  power:
    source: mqtt
    topic: devices/Kostal/totalPVPower
    timeout: 2m
#  energy:
#    source: mqtt
#    topic: devices/Kostal/totalHomeConsumptionPV
#    timeout: 2m
- type: custom
  name: Netzbezug
  power:
    source: mqtt
    topic: devices/Kostal/totalActivePower
    timeout: 2m
#  energy:
#    source: mqtt
#    topic: devices/Kostal/totalHomeConsumptionGrid
#    timeout: 2m
- type: custom
  name: BYD10
  power:
    source: mqtt
    topic: devices/Kostal/actualBatteryChargeDischargePower
    timeout: 2m
  soc:
    source: mqtt
    topic: devices/Kostal/batteryActualSoc
    timeout: 2m

chargers:
# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for examples see https://github.com/evcc-io/config#chargers
- type: template
  template: tinkerforge-warp
  #fw2: true
  host: 192.168.78.20
  port: 1883
  topic: devices/Warp2
  timeout: 30s
  name: WarpWallbox
  energymanager: devices/Warp2

vehicles:
# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for examples see https://github.com/evcc-io/config#vehicles
- name: EV6
  type: custom
  title: Kia EV6 # display name for UI
  capacity: 77 # byttery capacity (kWh)
  soc: # battery soc (%)
    source: mqtt
    topic: devices/KiaEV6/batteryStatus
    timeout: 20m
  range: # optional electric range (km)
    source: mqtt
    topic: devices/KiaEV6/availableRange
    timeout: 20m
  status: # FahrzeugStatus (%)
    source: mqtt
    topic: devices/KiaEV6/vehicleStatusIEC
    timeout: 20m
  onIdentify: # set defaults when vehicle is identified
    mode: pv
    #minSoC: 15
    #targetSoC: 80
- name: EV6adesso
  type: custom
  title: Kia EV6 adesso # display name for UI
  capacity: 77 # byttery capacity (kWh)
  soc: # battery soc (%)
    source: mqtt
    topic: devices/KiaEV6adesso/batteryStatus
    timeout: 20m
  range: # optional electric range (km)
    source: mqtt
    topic: devices/KiaEV6adesso/availableRange
    timeout: 20m
  status: # FahrzeugStatus (%)
    source: mqtt
    topic: devices/KiaEV6adesso/vehicleStatusIEC
    timeout: 20m
  onIdentify: # set defaults when vehicle is identified
    mode: pv
    #minSoC: 15
    #targetSoC: 80

tariffs:
# tariffs are the fixed or variable tariffs
# cheap (tibber/awattar) can be used to define a tariff rate considered cheap enough for charging
  currency: EUR # (default EUR)
  grid:
    #type: fixed
    #price: 0.319 # [currency]/kWh
    type: tibber
    #cheap: 0.25
    token: "xxx"
    homeid: "yyy"
  feedin:
    type: fixed
    price: 0.065 # [currency]/kWh

loadpoints:
# loadpoint describes the charger, charge meter and connected vehicle
- title: Warp
  charger: WarpWallbox
  mode: pv
  #phases: 3
  #mincurrent: 6
  #maxcurrent: 16
  #resetOnDisconnect: true
  # vehicle: EV6
  guardduration: 3m
  soc:
    poll:
      mode: always
      interval: 5m
    estimate: true

site:
# site describes the EVU connection, PV and home battery
  title: Zuhause
  meters:
    grid: Netzbezug
    pv:
    - PVErzeugung
    battery:
    - BYD10
  #prioritySoC: 66
  #bufferSoC: 75
  residualPower: 600
  #smartCostLimit: 0.15 # 15 ct

mqtt:
  broker: 192.168.78.20:1883
  clientid: evccClient
  user: xxx
  password: yyy
  topic: servers/evcc

# sponsor token enables optional features (request at https://cloud.evcc.io)
sponsortoken: xxx
plant: yyy

Log details

die MQTT-message devices/KiaEV6adesso/vehicleStatusIEC = A kam um 2024-06-17 07:45:56.039
die MQTT-message devices/KiaEV6/vehicleStatusIEC = B kam um 2024-06-18 07:45:56.007

[site  ] DEBUG 2024/06/18 07:31:02 ----
[lp-1  ] DEBUG 2024/06/18 07:31:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:31:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:31:02 pv power: 2470W
[site  ] DEBUG 2024/06/18 07:31:02 battery soc: 31%
[site  ] DEBUG 2024/06/18 07:31:02 battery power: -757W
[site  ] DEBUG 2024/06/18 07:31:02 grid meter: 15W
[site  ] DEBUG 2024/06/18 07:31:02 battery has priority at soc 31% (< 85%)
[site  ] DEBUG 2024/06/18 07:31:02 site power: 615W
[lp-1  ] DEBUG 2024/06/18 07:31:02 charge voltages: [235 235 233]V
[lp-1  ] DEBUG 2024/06/18 07:31:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:31:02 !! session: chargeRater.chargedEnergy=26.5 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/06/18 07:31:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:31:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:31:02 soc estimated: 85.01% (vehicle: 54.00%)
[lp-1  ] DEBUG 2024/06/18 07:31:02 vehicle soc: 85%
[lp-1  ] DEBUG 2024/06/18 07:31:02 vehicle range: 231km
[lp-1  ] DEBUG 2024/06/18 07:31:02 limitSoc reached: 85.0% > 85%
[site  ] DEBUG 2024/06/18 07:31:32 ----
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:31:32 pv power: 2487W
[site  ] DEBUG 2024/06/18 07:31:32 battery soc: 31%
[site  ] DEBUG 2024/06/18 07:31:32 battery power: -781W
[site  ] DEBUG 2024/06/18 07:31:32 grid meter: -2W
[site  ] DEBUG 2024/06/18 07:31:32 battery has priority at soc 31% (< 85%)
[site  ] DEBUG 2024/06/18 07:31:32 site power: 598W
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge voltages: [235 235 233]V
[lp-1  ] DEBUG 2024/06/18 07:31:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:31:32 !! session: chargeRater.chargedEnergy=26.5 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:31:32 charger status: A
[lp-1  ] INFO 2024/06/18 07:31:32 car disconnected
[lp-1  ] DEBUG 2024/06/18 07:31:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] INFO 2024/06/18 07:31:32 vehicle updated: Kia EV6 adesso -> unknown
[lp-1  ] DEBUG 2024/06/18 07:31:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:31:32 set session soc limit: 0
[lp-1  ] DEBUG 2024/06/18 07:31:32 set session energy limit: 0
[site  ] DEBUG 2024/06/18 07:31:32 ----
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:31:32 pv power: 2487W
[site  ] DEBUG 2024/06/18 07:31:32 battery soc: 31%
[site  ] DEBUG 2024/06/18 07:31:32 battery power: -781W
[site  ] DEBUG 2024/06/18 07:31:32 grid meter: -2W
[site  ] DEBUG 2024/06/18 07:31:32 battery has priority at soc 31% (< 85%)
[site  ] DEBUG 2024/06/18 07:31:32 site power: 598W
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge voltages: [235 235 233]V
[lp-1  ] DEBUG 2024/06/18 07:31:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:31:32 !! session: chargeRater.chargedEnergy=26.5 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/06/18 07:31:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:31:32 charger status: A
[site  ] DEBUG 2024/06/18 07:32:02 ----
(...)
[site  ] DEBUG 2024/06/18 07:37:02 ----
[lp-1  ] DEBUG 2024/06/18 07:37:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:37:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:37:02 pv power: 2776W
[site  ] DEBUG 2024/06/18 07:37:02 battery soc: 32%
[site  ] DEBUG 2024/06/18 07:37:02 battery power: -2278W
[site  ] DEBUG 2024/06/18 07:37:02 grid meter: 5W
[site  ] DEBUG 2024/06/18 07:37:02 battery has priority at soc 32% (< 85%)
[site  ] DEBUG 2024/06/18 07:37:02 site power: 605W
[lp-1  ] DEBUG 2024/06/18 07:37:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:37:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:37:02 !! session: chargeRater.chargedEnergy=26.5 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/06/18 07:37:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:37:02 charger status: A
[site  ] DEBUG 2024/06/18 07:37:32 ----
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:37:32 pv power: 2625W
[site  ] DEBUG 2024/06/18 07:37:32 battery soc: 32%
[site  ] DEBUG 2024/06/18 07:37:32 battery power: -2084W
[site  ] DEBUG 2024/06/18 07:37:32 grid meter: 13W
[site  ] DEBUG 2024/06/18 07:37:32 battery has priority at soc 32% (< 85%)
[site  ] DEBUG 2024/06/18 07:37:32 site power: 613W
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:37:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:37:32 !! session: chargeRater.chargedEnergy=26.5 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:37:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge start energy: 6.05e+03kWh
[lp-1  ] INFO 2024/06/18 07:37:32 car connected
[lp-1  ] DEBUG 2024/06/18 07:37:32 vehicle api refresh
[lp-1  ] DEBUG 2024/06/18 07:37:32 pv timer elapse
[lp-1  ] DEBUG 2024/06/18 07:37:32 pv timer inactive
[lp-1  ] DEBUG 2024/06/18 07:37:32 charge total import: 6047.932kWh
[main  ] DEBUG 2024/06/18 07:37:32 vehicle status: A (Kia EV6)
[main  ] DEBUG 2024/06/18 07:37:32 vehicle status: B (Kia EV6 adesso)
[lp-1  ] INFO 2024/06/18 07:37:32 vehicle updated: unknown -> Kia EV6 adesso
[lp-1  ] DEBUG 2024/06/18 07:37:32 set charge mode: pv
[lp-1  ] DEBUG 2024/06/18 07:37:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:37:32 vehicle status: B
[lp-1  ] DEBUG 2024/06/18 07:37:32 vehicle soc: 54%
[lp-1  ] DEBUG 2024/06/18 07:37:32 vehicle range: 231km
[lp-1  ] DEBUG 2024/06/18 07:37:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:37:32 pv charge current: 0A = 0A + -0.889A (613W @ 3p)
[lp-1  ] DEBUG 2024/06/18 07:37:32 pv enable timer reset
[lp-1  ] DEBUG 2024/06/18 07:37:32 pv timer inactive
[site  ] DEBUG 2024/06/18 07:38:02 ----
[lp-1  ] DEBUG 2024/06/18 07:38:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:38:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:38:02 pv power: 2835W
[site  ] DEBUG 2024/06/18 07:38:02 battery soc: 32%
[site  ] DEBUG 2024/06/18 07:38:02 battery power: -2322W
[site  ] DEBUG 2024/06/18 07:38:02 grid meter: 10W
[site  ] DEBUG 2024/06/18 07:38:02 battery has priority at soc 32% (< 85%)
[site  ] DEBUG 2024/06/18 07:38:02 site power: 610W
[lp-1  ] DEBUG 2024/06/18 07:38:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:38:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:38:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:38:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:38:02 next soc poll remaining time: 4m30s
[lp-1  ] DEBUG 2024/06/18 07:38:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:38:02 pv charge current: 0A = 0A + -0.884A (610W @ 3p)
[site  ] DEBUG 2024/06/18 07:38:32 ----
[lp-1  ] DEBUG 2024/06/18 07:38:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:38:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:38:32 pv power: 2112W
[site  ] DEBUG 2024/06/18 07:38:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:38:32 battery power: -532W
[site  ] DEBUG 2024/06/18 07:38:32 grid meter: -1112W
[site  ] DEBUG 2024/06/18 07:38:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:38:32 site power: -512W
[lp-1  ] DEBUG 2024/06/18 07:38:32 charge voltages: [235 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:38:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:38:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:38:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:38:32 next soc poll remaining time: 4m0s
[lp-1  ] DEBUG 2024/06/18 07:38:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:38:32 pv charge current: 0.743A = 0A + 0.743A (-512W @ 3p)
[site  ] DEBUG 2024/06/18 07:39:02 ----
[lp-1  ] DEBUG 2024/06/18 07:39:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:39:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:39:02 pv power: 1140W
[site  ] DEBUG 2024/06/18 07:39:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:39:02 battery power: -649W
[site  ] DEBUG 2024/06/18 07:39:02 grid meter: -18W
[site  ] DEBUG 2024/06/18 07:39:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:39:02 site power: 582W
[lp-1  ] DEBUG 2024/06/18 07:39:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:39:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:39:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:39:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:39:02 next soc poll remaining time: 3m30s
[lp-1  ] DEBUG 2024/06/18 07:39:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:39:02 pv charge current: 0A = 0A + -0.843A (582W @ 3p)
[site  ] DEBUG 2024/06/18 07:39:32 ----
[lp-1  ] DEBUG 2024/06/18 07:39:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:39:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:39:32 pv power: 1181W
[site  ] DEBUG 2024/06/18 07:39:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:39:32 battery power: 477W
[site  ] DEBUG 2024/06/18 07:39:32 grid meter: -23W
[site  ] DEBUG 2024/06/18 07:39:32 site power: 1054W
[lp-1  ] DEBUG 2024/06/18 07:39:32 charge voltages: [235 235 233]V
[lp-1  ] DEBUG 2024/06/18 07:39:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:39:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:39:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:39:32 next soc poll remaining time: 3m0s
[lp-1  ] DEBUG 2024/06/18 07:39:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:39:32 pv charge current: 0A = 0A + -1.53A (1054W @ 3p)
[site  ] DEBUG 2024/06/18 07:40:02 ----
[lp-1  ] DEBUG 2024/06/18 07:40:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:40:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:40:02 pv power: 1647W
[site  ] DEBUG 2024/06/18 07:40:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:40:02 battery power: -1219W
[site  ] DEBUG 2024/06/18 07:40:02 grid meter: 24W
[site  ] DEBUG 2024/06/18 07:40:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:40:02 site power: 624W
[lp-1  ] DEBUG 2024/06/18 07:40:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:40:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:40:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:40:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:40:02 next soc poll remaining time: 2m30s
[lp-1  ] DEBUG 2024/06/18 07:40:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:40:02 pv charge current: 0A = 0A + -0.904A (624W @ 3p)
[site  ] DEBUG 2024/06/18 07:40:32 ----
[lp-1  ] DEBUG 2024/06/18 07:40:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:40:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:40:32 pv power: 1190W
[site  ] DEBUG 2024/06/18 07:40:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:40:32 battery power: -721W
[site  ] DEBUG 2024/06/18 07:40:32 grid meter: -1W
[site  ] DEBUG 2024/06/18 07:40:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:40:32 site power: 599W
[lp-1  ] DEBUG 2024/06/18 07:40:32 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:40:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:40:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:40:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:40:32 next soc poll remaining time: 2m0s
[lp-1  ] DEBUG 2024/06/18 07:40:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:40:32 pv charge current: 0A = 0A + -0.868A (599W @ 3p)
[site  ] DEBUG 2024/06/18 07:41:02 ----
[lp-1  ] DEBUG 2024/06/18 07:41:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:41:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:41:02 pv power: 1236W
[site  ] DEBUG 2024/06/18 07:41:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:41:02 battery power: -724W
[site  ] DEBUG 2024/06/18 07:41:02 grid meter: 26W
[site  ] DEBUG 2024/06/18 07:41:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:41:02 site power: 626W
[lp-1  ] DEBUG 2024/06/18 07:41:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:41:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:41:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:41:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:41:02 next soc poll remaining time: 1m30s
[lp-1  ] DEBUG 2024/06/18 07:41:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:41:02 pv charge current: 0A = 0A + -0.907A (626W @ 3p)
[site  ] DEBUG 2024/06/18 07:41:32 ----
[lp-1  ] DEBUG 2024/06/18 07:41:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:41:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:41:32 pv power: 1306W
[site  ] DEBUG 2024/06/18 07:41:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:41:32 battery power: -839W
[site  ] DEBUG 2024/06/18 07:41:32 grid meter: -26W
[site  ] DEBUG 2024/06/18 07:41:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:41:32 site power: 574W
[lp-1  ] DEBUG 2024/06/18 07:41:32 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:41:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:41:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:41:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:41:32 next soc poll remaining time: 1m0s
[lp-1  ] DEBUG 2024/06/18 07:41:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:41:32 pv charge current: 0A = 0A + -0.832A (574W @ 3p)
[site  ] DEBUG 2024/06/18 07:42:02 ----
[lp-1  ] DEBUG 2024/06/18 07:42:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:42:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:42:02 pv power: 1474W
[site  ] DEBUG 2024/06/18 07:42:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:42:02 battery power: 207W
[site  ] DEBUG 2024/06/18 07:42:02 grid meter: -30W
[site  ] DEBUG 2024/06/18 07:42:02 site power: 777W
[lp-1  ] DEBUG 2024/06/18 07:42:02 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:42:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:42:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:42:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:42:02 next soc poll remaining time: 29s
[lp-1  ] DEBUG 2024/06/18 07:42:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:42:02 pv charge current: 0A = 0A + -1.13A (777W @ 3p)
[site  ] DEBUG 2024/06/18 07:42:32 ----
[lp-1  ] DEBUG 2024/06/18 07:42:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:42:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:42:32 pv power: 2017W
[site  ] DEBUG 2024/06/18 07:42:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:42:32 battery power: -1601W
[site  ] DEBUG 2024/06/18 07:42:32 grid meter: 21W
[site  ] DEBUG 2024/06/18 07:42:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:42:32 site power: 621W
[lp-1  ] DEBUG 2024/06/18 07:42:32 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:42:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:42:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:42:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:42:32 next soc poll remaining time: 0s
[lp-1  ] DEBUG 2024/06/18 07:42:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:42:32 pv charge current: 0A = 0A + -0.901A (621W @ 3p)
[site  ] DEBUG 2024/06/18 07:43:02 ----
[lp-1  ] DEBUG 2024/06/18 07:43:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:43:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:43:02 pv power: 1758W
[site  ] DEBUG 2024/06/18 07:43:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:43:02 battery power: -1370W
[site  ] DEBUG 2024/06/18 07:43:02 grid meter: 7W
[site  ] DEBUG 2024/06/18 07:43:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:43:02 site power: 607W
[lp-1  ] DEBUG 2024/06/18 07:43:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:43:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:43:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:43:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:43:02 soc estimated: 54.00% (vehicle: 54.00%)
[lp-1  ] DEBUG 2024/06/18 07:43:02 vehicle soc: 54%
[lp-1  ] DEBUG 2024/06/18 07:43:02 vehicle range: 231km
[lp-1  ] DEBUG 2024/06/18 07:43:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:43:02 pv charge current: 0A = 0A + -0.88A (607W @ 3p)
[site  ] DEBUG 2024/06/18 07:43:32 ----
[lp-1  ] DEBUG 2024/06/18 07:43:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:43:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:43:32 pv power: 1878W
[site  ] DEBUG 2024/06/18 07:43:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:43:32 battery power: -346W
[site  ] DEBUG 2024/06/18 07:43:32 grid meter: 18W
[site  ] DEBUG 2024/06/18 07:43:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:43:32 site power: 618W
[lp-1  ] DEBUG 2024/06/18 07:43:32 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:43:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:43:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:43:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:43:32 next soc poll remaining time: 4m29s
[lp-1  ] DEBUG 2024/06/18 07:43:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:43:32 pv charge current: 0A = 0A + -0.896A (618W @ 3p)
[site  ] DEBUG 2024/06/18 07:44:02 ----
[lp-1  ] DEBUG 2024/06/18 07:44:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:44:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:44:02 pv power: 1783W
[site  ] DEBUG 2024/06/18 07:44:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:44:02 battery power: -1438W
[site  ] DEBUG 2024/06/18 07:44:02 grid meter: -2W
[site  ] DEBUG 2024/06/18 07:44:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:44:02 site power: 598W
[lp-1  ] DEBUG 2024/06/18 07:44:02 charge voltages: [234 235 234]V
[lp-1  ] DEBUG 2024/06/18 07:44:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:44:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:44:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:44:02 next soc poll remaining time: 3m59s
[lp-1  ] DEBUG 2024/06/18 07:44:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:44:02 pv charge current: 0A = 0A + -0.866A (598W @ 3p)
[site  ] DEBUG 2024/06/18 07:44:32 ----
[lp-1  ] DEBUG 2024/06/18 07:44:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:44:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:44:32 pv power: 1608W
[site  ] DEBUG 2024/06/18 07:44:32 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:44:32 battery power: -1236W
[site  ] DEBUG 2024/06/18 07:44:32 grid meter: 3W
[site  ] DEBUG 2024/06/18 07:44:32 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:44:32 site power: 603W
[lp-1  ] DEBUG 2024/06/18 07:44:32 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:44:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:44:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:44:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:44:32 next soc poll remaining time: 3m29s
[lp-1  ] DEBUG 2024/06/18 07:44:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:44:32 pv charge current: 0A = 0A + -0.874A (603W @ 3p)
[site  ] DEBUG 2024/06/18 07:45:02 ----
[lp-1  ] DEBUG 2024/06/18 07:45:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:45:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:45:02 pv power: 2309W
[site  ] DEBUG 2024/06/18 07:45:02 battery soc: 33%
[site  ] DEBUG 2024/06/18 07:45:02 battery power: -722W
[site  ] DEBUG 2024/06/18 07:45:02 grid meter: 2W
[site  ] DEBUG 2024/06/18 07:45:02 battery has priority at soc 33% (< 85%)
[site  ] DEBUG 2024/06/18 07:45:02 site power: 602W
[lp-1  ] DEBUG 2024/06/18 07:45:02 charge voltages: [235 235 232]V
[lp-1  ] DEBUG 2024/06/18 07:45:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:45:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:45:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:45:02 next soc poll remaining time: 3m0s
[lp-1  ] DEBUG 2024/06/18 07:45:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:45:02 pv charge current: 0A = 0A + -0.873A (602W @ 3p)
[site  ] DEBUG 2024/06/18 07:45:32 ----
[lp-1  ] DEBUG 2024/06/18 07:45:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:45:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:45:32 pv power: 2261W
[site  ] DEBUG 2024/06/18 07:45:32 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:45:32 battery power: -1841W
[site  ] DEBUG 2024/06/18 07:45:32 grid meter: -14W
[site  ] DEBUG 2024/06/18 07:45:32 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:45:32 site power: 586W
[lp-1  ] DEBUG 2024/06/18 07:45:32 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:45:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:45:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:45:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:45:32 next soc poll remaining time: 2m30s
[lp-1  ] DEBUG 2024/06/18 07:45:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:45:32 pv charge current: 0A = 0A + -0.849A (586W @ 3p)
[site  ] DEBUG 2024/06/18 07:46:02 ----
[lp-1  ] DEBUG 2024/06/18 07:46:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:46:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:46:02 pv power: 2572W
[site  ] DEBUG 2024/06/18 07:46:02 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:46:02 battery power: -2170W
[site  ] DEBUG 2024/06/18 07:46:02 grid meter: -6W
[site  ] DEBUG 2024/06/18 07:46:02 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:46:02 site power: 594W
[lp-1  ] DEBUG 2024/06/18 07:46:02 charge voltages: [234 234 233]V
[lp-1  ] DEBUG 2024/06/18 07:46:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:46:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:46:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:46:02 next soc poll remaining time: 2m0s
[lp-1  ] DEBUG 2024/06/18 07:46:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:46:02 pv charge current: 0A = 0A + -0.861A (594W @ 3p)
[site  ] DEBUG 2024/06/18 07:46:32 ----
[lp-1  ] DEBUG 2024/06/18 07:46:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:46:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:46:32 pv power: 2372W
[site  ] DEBUG 2024/06/18 07:46:32 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:46:32 battery power: -571W
[site  ] DEBUG 2024/06/18 07:46:32 grid meter: -64W
[site  ] DEBUG 2024/06/18 07:46:32 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:46:32 site power: 536W
[lp-1  ] DEBUG 2024/06/18 07:46:32 charge voltages: [235 235 232]V
[lp-1  ] DEBUG 2024/06/18 07:46:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:46:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:46:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:46:32 next soc poll remaining time: 1m30s
[lp-1  ] DEBUG 2024/06/18 07:46:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:46:32 pv charge current: 0A = 0A + -0.778A (536W @ 3p)
[site  ] DEBUG 2024/06/18 07:47:02 ----
[lp-1  ] DEBUG 2024/06/18 07:47:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:47:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:47:02 pv power: 3356W
[site  ] DEBUG 2024/06/18 07:47:02 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:47:02 battery power: -2864W
[site  ] DEBUG 2024/06/18 07:47:02 grid meter: 2W
[site  ] DEBUG 2024/06/18 07:47:02 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:47:02 site power: 602W
[lp-1  ] DEBUG 2024/06/18 07:47:02 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:47:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:47:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:47:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:47:02 next soc poll remaining time: 1m0s
[lp-1  ] DEBUG 2024/06/18 07:47:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:47:02 pv charge current: 0A = 0A + -0.873A (602W @ 3p)
[site  ] DEBUG 2024/06/18 07:47:32 ----
[lp-1  ] DEBUG 2024/06/18 07:47:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:47:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:47:32 pv power: 3412W
[site  ] DEBUG 2024/06/18 07:47:32 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:47:32 battery power: -2917W
[site  ] DEBUG 2024/06/18 07:47:32 grid meter: 20W
[site  ] DEBUG 2024/06/18 07:47:32 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:47:32 site power: 620W
[lp-1  ] DEBUG 2024/06/18 07:47:32 charge voltages: [234 235 235]V
[lp-1  ] DEBUG 2024/06/18 07:47:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:47:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:47:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:47:32 next soc poll remaining time: 29s
[lp-1  ] DEBUG 2024/06/18 07:47:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:47:32 pv charge current: 0A = 0A + -0.898A (620W @ 3p)
[site  ] DEBUG 2024/06/18 07:48:02 ----
[lp-1  ] DEBUG 2024/06/18 07:48:02 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:48:02 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:48:02 pv power: 3426W
[site  ] DEBUG 2024/06/18 07:48:02 battery soc: 34%
[site  ] DEBUG 2024/06/18 07:48:02 battery power: -1743W
[site  ] DEBUG 2024/06/18 07:48:02 grid meter: 26W
[site  ] DEBUG 2024/06/18 07:48:02 battery has priority at soc 34% (< 85%)
[site  ] DEBUG 2024/06/18 07:48:02 site power: 626W
[lp-1  ] DEBUG 2024/06/18 07:48:02 charge voltages: [235 235 232]V
[lp-1  ] DEBUG 2024/06/18 07:48:02 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:48:02 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:48:02 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:48:02 vehicle status: A
[lp-1  ] DEBUG 2024/06/18 07:48:02 vehicle soc: 84%
[lp-1  ] DEBUG 2024/06/18 07:48:02 vehicle range: 374km
[lp-1  ] DEBUG 2024/06/18 07:48:02 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:48:02 pv charge current: 0A = 0A + -0.907A (626W @ 3p)
[site  ] DEBUG 2024/06/18 07:48:32 ----
[lp-1  ] DEBUG 2024/06/18 07:48:32 charge power: 0W
[lp-1  ] DEBUG 2024/06/18 07:48:32 charge currents: [0 0 0]A
[site  ] DEBUG 2024/06/18 07:48:32 pv power: 2307W
[site  ] DEBUG 2024/06/18 07:48:32 battery soc: 35%
[site  ] DEBUG 2024/06/18 07:48:32 battery power: -1872W
[site  ] DEBUG 2024/06/18 07:48:32 grid meter: 37W
[site  ] DEBUG 2024/06/18 07:48:32 battery has priority at soc 35% (< 85%)
[site  ] DEBUG 2024/06/18 07:48:32 site power: 637W
[lp-1  ] DEBUG 2024/06/18 07:48:32 charge voltages: [234 234 234]V
[lp-1  ] DEBUG 2024/06/18 07:48:32 detected connected phases: 3p
[lp-1  ] DEBUG 2024/06/18 07:48:32 charge total import: 6047.932kWh
[lp-1  ] DEBUG 2024/06/18 07:48:32 charger status: B
[lp-1  ] DEBUG 2024/06/18 07:48:32 next soc poll remaining time: 4m30s
[lp-1  ] DEBUG 2024/06/18 07:48:32 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/06/18 07:48:32 pv charge current: 0A = 0A + -0.923A (637W @ 3p)
[site  ] DEBUG 2024/06/18 07:49:02 ----

What type of operating system are you running?

Docker container

Version

v0.127.2

andig commented 3 months ago

Bei diesem Status

[main  ] DEBUG 2024/06/18 07:37:32 vehicle status: A (Kia EV6)
[main  ] DEBUG 2024/06/18 07:37:32 vehicle status: B (Kia EV6 adesso)

kann nur Adesso erkannt werden.

binderth commented 3 months ago

Das stimmt. Aber spätestens mit der neuen MQTT-Nachricht und allerspätestens mit dem nächsten SoC-Poll sollte das Fahrzeug aich ändern können

andig commented 3 months ago

Die Erkennung passiert bei Verbindung. Danach änder sich das Fahrzeug ja nicht mehr.

binderth commented 3 months ago

Ja - und nein. Du wirst bei keinem custom-Fahrzeug mit egal welcher API die IEC-Statusänderung vor Änderung der (meist lokalen) Wallbox mitbekommen. Dazu sind die vehicle-APIs zu träge.

andig commented 3 months ago

Das wiederum hat nix mit einem Custom vehicle zu tun. Ich frag mich allerdings warum das sonst so wunderbar funktioniert?

binderth commented 3 months ago

Bei einem custom vehicle läuft der API-Call asynchron zu evcc. Bei einem evcc-vehicle habt ihr im Code sicher einen wait for answer eingebaut. Auch hier habt ihr keine Chance den IEC-Change parallel oder gar vor dem Wallbox change zu bekommen.

andig commented 3 months ago

@binderth du könntest als workaround mal probieren, beim abstecken den alten Status des angeschlossenen Fahrzeugs zu nullen, also einfach auf A. Solange bis es einen neuen gibt. Das sollte als Workaround schon reichen.

binderth commented 3 months ago

@andig Bin wieder ausm Kurzurlaub zurück. ja, mein Workaround ist, bei jedem Wechsel des Status eines angeschlossenen Fahrzeugs lasse ich per API einen refresh auf den loadpoint machen (PATCH /api/loadpoints//vehicle). Wenn es eine evcc-interne Lösung dafür gäbe, kommt das auch weniger versierten Nutzern zugute. 😊

andig commented 3 months ago

Wenn es eine evcc-interne Lösung dafür gäbe, kommt das auch weniger versierten Nutzern zugute.

Wie sollte die denn aussehen?

Hofyyy commented 3 months ago

@binderth Ich bin auch gespannt wie das aussehen soll. Wir haben auch 2 Autos zwei Wallboxen und manchmal geht die Erkennung nicht optimal. Hatte aber noch keine Zeit zu forschen. Ich hänge mich hier mal mit rein.

binderth commented 3 months ago

Wie sollte die denn aussehen?

Wenn per MQTT oder API das aktuelle Fahrzeug nicht mehr den IEC-Lade-/Warte-Status hat, sollte eine erneute Abfrage laufen. Wenn "Gastfahrzeug" steht, sollte im eingestellten Rythmus geprüft werden, ob ein anderes Fahrzeug lädt.

Das könnte ja auf "custom"-Fahrzeuge eingeschränkt werden. Auf jeden Fall sollte eben ein anderes gesendeten Fahrzeug erkannt werden, wenn wie bei mir per MQTT eben der IEC-Status nicht zum aktuellen "erkannten" Fahrzeug passt.

andig commented 3 months ago

Wenn per MQTT oder API das aktuelle Fahrzeug nicht mehr den IEC-Lade-/Warte-Status hat, sollte eine erneute Abfrage laufen.

Was bedeutet das? Der Ladepunkt kennt kein Mqtt.

Das könnte ja auf "custom"-Fahrzeuge eingeschränkt werden

Der Ladepunkt ist agnostisch. Ein Fzg ist ein Fzg.

Auf jeden Fall sollte eben ein anderes gesendeten Fahrzeug erkannt werden, wenn wie bei mir per MQTT eben der IEC-Status nicht zum aktuellen "erkannten" Fahrzeug passt.

Wie?

binderth commented 3 months ago

Wenn der Ladepunkt agnostisch ist, wie erfolgt die Zuordnung eines Fahrzeugs zu diesem? Und wenn eben jenes Fahrzeug nun in "A" landet, warum sollte es weiter stur als ladendes Fahrzeug gelten?

(Wenn ihr kein Bock auf custom-vehicles habt, dann sagt das bitte, kommt mir echt mühsam vor)

andig commented 3 months ago

Ich meine damit: der Ladepunkt weiss nichts von Mqtt oder custom. Für ihn ist ein Auto ein Auto. Du kannst also nicht sagen „bei Mqtt soll das passieren, bei normalen Autos jenes“.

Die Frage war ernst gemeint: wie soll die Logik aussehen?

binderth commented 3 months ago

Kenne jetzt weder Code, noch Architektur, aber irgendwo muss es ja eine Zuordnung von Fahrzeugen zu Ladepunkten geben. Wenn sich nun ein Fahrzeug ändert, das an einem Ladepunkt "gemeldet" ist und nun "A" hat, kann doch ein erneuter Ladepunkt-Check gestartet werden? Ich mach das halt per API über mein smarthome (PATCH /api/loadpoints//vehicle), aber das kann ja nicht jeder.

andig commented 3 months ago

Dann müssten wir anhaltend die Fahrzeug APIs pollen? Leider keine gute Idee :(

binderth commented 3 months ago

Das ist doch nicht nötig, bzw ist das ja mit dem poll.mode bzw poll.interval für jeden steuerbar! Wenns gepusht wird (durch MQTT oder per (evtl neuer?) API), fragt ja auch keiner, woher das kommt!??

Ist nur ziemlich unlogisch, dass evcc den Fahrzeugstatus kennt - aber null drauf reagiert und stur bei einer veralteten Meinung bleibt.

andig commented 3 months ago

Die Frage war: nach welchem Algorithmus soll das geschehen? Bisher gibts dazu keine Antwort die umsetzbar wäre. Der Algo muss von custom oder mqtt unabhängig sein da der Loadpoint davon nix weiss. Per Default werden die APIs nur 1x je Stunde abgefragt, es sei denn das Auto lädt.

binderth commented 3 months ago

Die Antwort ist: sobald ein Fahrzeug den Status ändert!?

VolkerK62 commented 3 months ago

Das kommt ja nicht von alleine. Dazu müsste dann der Status ständig abgefragt werden.

Hofyyy commented 3 months ago

Ich fasse mal zusammen, ggf. prüfe ich auch mal später den Sourcecode.

Wenn sich der State im Auto ändert (wann auch immer), bekommen wir das mindestens per MQTT gepusht!?, wenn dann das Auto den Loadpoint kennt und gerade verbunden ist könnte man da eine fuktion aufrufen, die das gewünsche verhalten ausführt. Also reset des states etc. Dei Frage ist ob das zu 100% das gewünschte verhalten wäre.

Dann wäre es doch auch nicht schlimm, das erstmal für die APIs anzubieten die Push unterstützen oder nicht? Beispiel bei Teslamate wäre es ja über StreamingAPI -> MQTT auch nice.

Die APIs die das nicht können, haben halt das "tolle" verhalten noch nicht.

andig commented 3 months ago

Der Loadpoint ist führend. Devices können/sollen nichts am State des Loadpoints ändern. Schon gar keine generischen Devices (mqtt), denn das würde wieder neue Device-APIs bedeuten.

Das kommt ja nicht von alleine. Dazu müsste dann der Status ständig abgefragt werden.

Full circle. So ist es und stand schon in https://github.com/evcc-io/evcc/issues/14457#issuecomment-2213362202. Die Soc-Abfragen haben ein eigenes Caching, alle anderen APIs gehen i.A. hart auf das Fahrzeug durch.

Die Frage nach dem Algorithmus kommt nicht von ungefähr ;)

Hofyyy commented 3 months ago

Ok verstanden.

Aus objektorientierter Sicht ist das Auto ja mal ein Objekt mit einem State (Kabel dran) daher könnte das Auto dem bekannten Loadpoint, da es da ja dran hängt, auch dem Loadpoint sagen dürfen, wenn das Kabel aus ihm entfernt wurde. Da wird ja nicht beliebig im Loadpoint rumgefingert, sondern würde ggf. ein ganz definierte Public methode aufgerufen, oder in Go ein API? Also highlevel ist klar wie man es machen müsste / könnte :-)

Wobei mir klar ist, dass das erstmal UML denken ist und ich mir den Source noch nicht angeschaut habe.

andig commented 2 months ago

Keine neue Erkenntnisse/ kein Algorithmus. Closing.