evcc-io / evcc

Sonne tanken β˜€οΈπŸš˜
https://evcc.io
MIT License
3.54k stars 656 forks source link

Error: charger disable: invalid status: 400 upon disconnect car from Charger (Easee) #11416

Closed Frostexxx closed 10 months ago

Frostexxx commented 10 months ago

Describe the bug

After disconnecting the car from the charger (Easee Home) the error "charger disable: invalid status: 400" is shown repeadetly. Also the loading session is still shown as active in evcc although the car has been unplugged.

Steps to reproduce

  1. Disconnect car from charger (Easee Home)
  2. ...

Configuration details

open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: info
levels:
  cache: error

# unique installation id
plant: *****************************************************

interval: 10s # control cycle interval

sponsortoken: ********************************************************************************************************************************

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false

meters:
- type: template
  template: shelly-3em
  usage: grid
  host: 192.168.178.67
  name: grid1

chargers:
- type: template
  template: easee
  user: ***************@*********
  password: ***************
  charger: EH3LJKDG
  name: wallbox3
- type: template
  template: easee
  user: ***************@*********
  password: ***************
  charger: EHKY3HLC
  name: wallbox4

vehicles:
- type: template
  template: hyundai
  title: Ioniq5
  user: ***************@*********
  password: ***************
  capacity: 77
  phases: 3
  icon: car
  cache: 15m
  language: de
  mode: pv
  minCurrent: 6
  maxCurrent: 16
  priority: 0
  name: ev2

loadpoints:
- title: Garage rechts
  charger: wallbox3
  vehicle: ev2
  mode: pv
  phases: 0
  mincurrent: 6
- title: Garage links
  charger: wallbox4
  mode: pv
  phases: 0
  mincurrent: 6
  maxcurrent: 25

site:
  title: Zuhause
  meters:
    grid: grid1

tariffs:
  currency: EUR # (default EUR)
  grid:
    # static grid price
    type: fixed
    price: 0.*** # [currency]/kWh

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.*** # [currency]/kWh

messaging:
  events:
    start: # charge start event
      title: Charge of {{.vehicleTitle}} started
      msg: |
        Wallbox {{.title}} started charging {{.vehicleTitle}} in {{ toString .mode | upper }} mode.
        --------------------------
        evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
        Netz-Leistung: {{round (divf .gridPower 1000) 3 }} kW
        Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
        Eigenverbrauch: {{round (divf .homePower 1000) 3 }} kW
        {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
    stop: # charge stop event
      title: Charge of {{.vehicleTitle}} finished
      msg: |
        Wallbox {{.title}} finished charging {{.vehicleTitle}}
        with {{round (divf .chargedEnergy 1000) 2 }} kWh in {{.chargeDuration}}.
        --------------------------
        evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
        Netz-Leistung: {{round (divf .gridPower 1000) 3 }} kW
        Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
        Eigenverbrauch: {{round (divf .homePower 1000) 3 }} kW
        {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
    connect: # vehicle connect event
      title: "{{.vehicleTitle}} connected on wallbox {{.title}}"
      msg: |
        {{.vehicleTitle}} connected on wallbox {{.title}} at {{round (divf .pvPower 1000) 2 }} kW PV.
        --------------------------
        evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
        Netz-Leistung: {{round (divf .gridPower 1000) 3 }} kW
        Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
        Eigenverbrauch: {{round (divf .homePower 1000) 3 }} kW
        {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
    disconnect: # vehicle connected event
      title: "{{.vehicleTitle}} disconnected of wallbox {{.title}}"
      msg: |
        {{.vehicleTitle}} disconnected of wallbox {{.title}} after {{.connectedDuration}}.
        --------------------------
        evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
        Netz-Leistung: {{round (divf .gridPower 1000) 3 }} kW
        Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
        Eigenverbrauch: {{round (divf .homePower 1000) 3 }} kW
        {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
  services:
    - type: telegram
      token: ************************************************** # bot id : jede laufende Instanz von evcc benΓΆtigt eine eigene bot id
      chats:
      - -*******************

Log details

[main  ] INFO 2024/01/02 12:38:20 evcc 0.123.3
[main  ] INFO 2024/01/02 12:38:20 using config file: /etc/evcc.yaml
[main  ] INFO 2024/01/02 12:38:21 starting ui and api at :7070
[db    ] INFO 2024/01/02 12:38:22 using sqlite database: /home/frostexxx/.evcc/evcc.db
[lp-1  ] DEBUG 2024/01/02 12:38:29 charge total import: 2748.383kWh
[lp-2  ] DEBUG 2024/01/02 12:38:29 charge total import: 0.000kWh
[site  ] INFO 2024/01/02 12:38:30 site config:
[site  ] INFO 2024/01/02 12:38:30   meters:      grid βœ“ pv βœ— battery βœ—
[site  ] INFO 2024/01/02 12:38:30     grid:      power βœ“ energy βœ“ currents βœ“
[site  ] INFO 2024/01/02 12:38:30   vehicles:
[site  ] INFO 2024/01/02 12:38:30     vehicle 1: range βœ“ finish βœ“ status βœ“ climate βœ— wakeup βœ“
[lp-1  ] INFO 2024/01/02 12:38:30 loadpoint 1:
[lp-1  ] INFO 2024/01/02 12:38:30   mode:        pv
[lp-1  ] INFO 2024/01/02 12:38:30   charger:     power βœ“ energy βœ“ currents βœ“ phases βœ“ wakeup βœ—
[lp-1  ] INFO 2024/01/02 12:38:30   meters:      charge βœ“
[lp-1  ] INFO 2024/01/02 12:38:30     charge:    power βœ“ energy βœ“ currents βœ“
[lp-2  ] INFO 2024/01/02 12:38:30 loadpoint 2:
[lp-2  ] INFO 2024/01/02 12:38:30   mode:        pv
[lp-2  ] INFO 2024/01/02 12:38:30   charger:     power βœ“ energy βœ“ currents βœ“ phases βœ“ wakeup βœ—
[lp-2  ] INFO 2024/01/02 12:38:30   meters:      charge βœ“
[lp-2  ] INFO 2024/01/02 12:38:30     charge:    power βœ“ energy βœ“ currents βœ“
[lp-1  ] DEBUG 2024/01/02 12:38:30 phase timer inactive
[lp-1  ] DEBUG 2024/01/02 12:38:30 pv timer inactive
[lp-1  ] DEBUG 2024/01/02 12:38:30 guard timer inactive
[lp-1  ] INFO 2024/01/02 12:38:30 vehicle updated: unknown -> Ioniq5
[lp-1  ] DEBUG 2024/01/02 12:38:30 set charge mode: pv
[lp-2  ] DEBUG 2024/01/02 12:38:30 phase timer inactive
[lp-2  ] DEBUG 2024/01/02 12:38:30 pv timer inactive
[lp-2  ] DEBUG 2024/01/02 12:38:30 guard timer inactive
[site  ] WARN 2024/01/02 12:38:30 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site  ] DEBUG 2024/01/02 12:38:30 ----
[lp-1  ] DEBUG 2024/01/02 12:38:30 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:38:30 charge power: 0W
[site  ] DEBUG 2024/01/02 12:38:30 grid power: 287W
[site  ] DEBUG 2024/01/02 12:38:30 grid powers: [-86 219 154]W
[site  ] DEBUG 2024/01/02 12:38:30 grid currents: [-1.18 1.45 0.78]A
[site  ] DEBUG 2024/01/02 12:38:30 pv power: 0W
[site  ] DEBUG 2024/01/02 12:38:30 site power: 287W
[lp-1  ] DEBUG 2024/01/02 12:38:31 vehicle odometer: 9882km
[lp-1  ] DEBUG 2024/01/02 12:38:31 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:38:31 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:38:31 charger status: A
[lp-1  ] INFO 2024/01/02 12:38:31 car disconnected
[lp-1  ] DEBUG 2024/01/02 12:38:31 set charge mode: pv
[lp-1  ] DEBUG 2024/01/02 12:38:31 set session soc limit: 0
[lp-1  ] DEBUG 2024/01/02 12:38:31 set session energy limit: 0
[lp-1  ] DEBUG 2024/01/02 12:38:31 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[main  ] INFO 2024/01/02 12:38:32 new version available: 0.123.4
[site  ] DEBUG 2024/01/02 12:38:40 ----
[lp-1  ] DEBUG 2024/01/02 12:38:40 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:38:40 charge power: 0W
[site  ] DEBUG 2024/01/02 12:38:40 grid power: 111W
[site  ] DEBUG 2024/01/02 12:38:40 grid powers: [-81 39 154]W
[site  ] DEBUG 2024/01/02 12:38:41 grid currents: [-1.16 0.32 0.78]A
[site  ] DEBUG 2024/01/02 12:38:41 pv power: 0W
[site  ] DEBUG 2024/01/02 12:38:41 site power: 111W
[lp-2  ] DEBUG 2024/01/02 12:38:41 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:38:41 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:38:41 charger status: A
[lp-2  ] INFO 2024/01/02 12:38:41 car disconnected
[lp-2  ] DEBUG 2024/01/02 12:38:41 set session soc limit: 0
[lp-2  ] DEBUG 2024/01/02 12:38:41 set session energy limit: 0
[site  ] DEBUG 2024/01/02 12:38:50 ----
[lp-1  ] DEBUG 2024/01/02 12:38:50 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:38:50 charge power: 0W
[site  ] DEBUG 2024/01/02 12:38:50 grid power: 186W
[site  ] DEBUG 2024/01/02 12:38:50 grid powers: [-91 122 154]W
[site  ] DEBUG 2024/01/02 12:38:50 grid currents: [-1.16 1.27 0.78]A
[site  ] DEBUG 2024/01/02 12:38:50 pv power: 0W
[site  ] DEBUG 2024/01/02 12:38:50 site power: 186W
[lp-1  ] DEBUG 2024/01/02 12:38:50 vehicle odometer: 9882km
[lp-1  ] DEBUG 2024/01/02 12:38:50 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:38:50 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:38:50 charger status: A
[lp-1  ] DEBUG 2024/01/02 12:38:50 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2024/01/02 12:39:00 ----
[lp-1  ] DEBUG 2024/01/02 12:39:00 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:00 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:00 grid power: 105W
[site  ] DEBUG 2024/01/02 12:39:00 grid powers: [-88 38 155]W
[site  ] DEBUG 2024/01/02 12:39:01 grid currents: [-1.16 0.32 0.78]A
[site  ] DEBUG 2024/01/02 12:39:01 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:01 site power: 105W
[lp-2  ] DEBUG 2024/01/02 12:39:01 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:39:01 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:39:01 charger status: A
[site  ] DEBUG 2024/01/02 12:39:10 ----
[lp-1  ] DEBUG 2024/01/02 12:39:10 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:10 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:10 grid power: 184W
[site  ] DEBUG 2024/01/02 12:39:10 grid powers: [-85 116 154]W
[site  ] DEBUG 2024/01/02 12:39:10 grid currents: [-1.15 0.88 0.77]A
[site  ] DEBUG 2024/01/02 12:39:10 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:10 site power: 184W
[lp-1  ] DEBUG 2024/01/02 12:39:10 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:39:10 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:39:10 charger status: A
[lp-1  ] DEBUG 2024/01/02 12:39:10 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2024/01/02 12:39:20 ----
[lp-1  ] DEBUG 2024/01/02 12:39:20 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:20 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:20 grid power: 278W
[site  ] DEBUG 2024/01/02 12:39:20 grid powers: [-83 207 154]W
[site  ] DEBUG 2024/01/02 12:39:20 grid currents: [-1.15 1.31 0.77]A
[site  ] DEBUG 2024/01/02 12:39:20 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:20 site power: 278W
[lp-2  ] DEBUG 2024/01/02 12:39:20 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:39:20 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:39:20 charger status: A
[site  ] DEBUG 2024/01/02 12:39:30 ----
[lp-1  ] DEBUG 2024/01/02 12:39:30 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:30 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:31 grid power: 206W
[site  ] DEBUG 2024/01/02 12:39:31 grid powers: [-102 155 153]W
[site  ] DEBUG 2024/01/02 12:39:32 grid currents: [-1.18 1.16 0.77]A
[site  ] DEBUG 2024/01/02 12:39:32 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:32 site power: 206W
[lp-1  ] DEBUG 2024/01/02 12:39:32 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:39:32 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:39:32 charger status: A
[lp-1  ] DEBUG 2024/01/02 12:39:32 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2024/01/02 12:39:40 ----
[lp-1  ] DEBUG 2024/01/02 12:39:40 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:40 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:40 grid power: 102W
[site  ] DEBUG 2024/01/02 12:39:40 grid powers: [-80 28 154]W
[site  ] DEBUG 2024/01/02 12:39:40 grid currents: [-1.15 0.33 0.77]A
[site  ] DEBUG 2024/01/02 12:39:40 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:40 site power: 102W
[lp-2  ] DEBUG 2024/01/02 12:39:40 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:39:40 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:39:40 charger status: A
[site  ] DEBUG 2024/01/02 12:39:50 ----
[lp-1  ] DEBUG 2024/01/02 12:39:50 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:39:50 charge power: 0W
[site  ] DEBUG 2024/01/02 12:39:50 grid power: 241W
[site  ] DEBUG 2024/01/02 12:39:50 grid powers: [-81 167 155]W
[site  ] DEBUG 2024/01/02 12:39:50 grid currents: [-1.14 1.29 0.78]A
[site  ] DEBUG 2024/01/02 12:39:50 pv power: 0W
[site  ] DEBUG 2024/01/02 12:39:50 site power: 241W
[lp-1  ] DEBUG 2024/01/02 12:39:50 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:39:50 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:39:50 charger status: A
[lp-1  ] DEBUG 2024/01/02 12:39:50 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2024/01/02 12:40:00 ----
[lp-1  ] DEBUG 2024/01/02 12:40:00 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:40:00 charge power: 0W
[site  ] DEBUG 2024/01/02 12:40:00 grid power: 104W
[site  ] DEBUG 2024/01/02 12:40:02 grid powers: [-77 28 153]W
[site  ] DEBUG 2024/01/02 12:40:02 grid currents: [-1.16 0.33 0.77]A
[site  ] DEBUG 2024/01/02 12:40:02 pv power: 0W
[site  ] DEBUG 2024/01/02 12:40:02 site power: 104W
[lp-2  ] DEBUG 2024/01/02 12:40:02 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:40:02 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:40:02 charger status: A
[site  ] DEBUG 2024/01/02 12:40:10 ----
[lp-1  ] DEBUG 2024/01/02 12:40:10 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:40:10 charge power: 0W
[site  ] DEBUG 2024/01/02 12:40:11 grid power: 300W
[site  ] DEBUG 2024/01/02 12:40:12 grid powers: [-76 183 154]W
[site  ] DEBUG 2024/01/02 12:40:13 grid currents: [-1.14 1.52 0.77]A
[site  ] DEBUG 2024/01/02 12:40:13 pv power: 0W
[site  ] DEBUG 2024/01/02 12:40:13 site power: 300W
[lp-1  ] DEBUG 2024/01/02 12:40:13 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2024/01/02 12:40:13 charge total import: 2748.383kWh
[lp-1  ] DEBUG 2024/01/02 12:40:13 charger status: A
[lp-1  ] DEBUG 2024/01/02 12:40:13 set ev2 plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2024/01/02 12:40:20 ----
[lp-1  ] DEBUG 2024/01/02 12:40:20 charge power: 0W
[lp-2  ] DEBUG 2024/01/02 12:40:20 charge power: 0W
[site  ] DEBUG 2024/01/02 12:40:20 grid power: 281W
[site  ] DEBUG 2024/01/02 12:40:20 grid powers: [-77 205 153]W
[site  ] DEBUG 2024/01/02 12:40:20 grid currents: [-1.15 1.24 0.77]A
[site  ] DEBUG 2024/01/02 12:40:20 pv power: 0W
[site  ] DEBUG 2024/01/02 12:40:20 site power: 281W
[lp-2  ] DEBUG 2024/01/02 12:40:20 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2024/01/02 12:40:20 charge total import: 0.000kWh
[lp-2  ] DEBUG 2024/01/02 12:40:20 charger status: A
[site  ] DEBUG 2024/01/02 12:40:30 ----

What type of operating system are you running?

Linux

Version

0.123.3

andig commented 10 months ago

Logfile passt nicht zum Fehler.

/cc @GrimmiMeloni

GrimmiMeloni commented 10 months ago

Fehler 400 passt zumindest nicht zu #11431. Kânnte also auch was anderes sein. Da müßte jetzt in der Tat mal ein Log mit dem Fehler her.