evcc-io / evcc

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

Volvo XC90 Recharge zegt "conected" gibt aber keine Daten aus #9476

Closed rssprinter closed 1 year ago

rssprinter commented 1 year ago

Describe the bug

Hallo Zusammen,

ich habe erfolgreich evcc aufgesetzt und habe nur ein Problem.

Die Daten von meinem Volvo XC90 BJ 2022 werden nicht angezeigt. Ich habe einen vccapikey erstellt und eingetragen damit wird das Auto auch als "online" angezeigt. Leider werden die Daten für Ladestand und Reichweite ..... nicht angezeigt.

Beim BMW klappt das problemlos.

Muss ich noch etwas einstellen? Oder freigeben. ?

Beste Grüße

Matthias

Im Anhang meine Config:

Steps to reproduce

1. 2. 3. ...

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: debug
levels:
  cache: error

# unique installation id
plant: be.......

interval: 10s # control cycle interval

sponsortoken: eyJhb......

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

tariffs:
  currency: EUR # (default EUR)
  grid:
    type: fixed
    price: 0.36 # [currency]/kWh
  feedin:
    type: fixed
    price: 0.07 # [currency]/kWh

meters:
- type: template
  template: sungrow-hybrid 
  id: 1  
  host: 192.168.x.x  
  port: 502  
  usage: grid  
  modbus: tcpip  
  name: grid1
- type: template
  template: sungrow-hybrid 
  id: 1  
  host: 192.168.x.x
  port: 502  
  usage: pv  
  modbus: tcpip  
  name: pv2
- type: template
  template: sungrow-hybrid 
  id: 1  
  host: 192.168.x.x  
  port: 502  
  usage: battery  
  modbus: tcpip  
  name: battery3
- type: template
  template: shelly-1pm
  usage: Poolpumpe
  host: 192.168.x.x
  name: shelly_m_Poolpumpe

chargers:
- type: template
  template: go-e-v3 
  host: 192.168.x.x  
  name: wallbox6
- type: template
  template: shelly 
  host: 192.168.x.x
  channel: 0
  standbypower: -1
  name: shellysolar

vehicles:
- type: template
  template: volvo-connected
  title: Volvo XC90E  
  user: info@ma.....  
  password:xxx   
  vin: YV1LFBMVDM1716522
  capacity: 12.6  
  icon: car
  vccapikey: d76f.......
  name: ev4
- type: template
  template: bmw 
  title: BMW 320E  
  user: denkenl.....  
  password: xxx  
  vin: WBA....... 
  capacity: 12.6 
  name: ev5
  icon: car
- type: custom
  title: Heizstab
  phases: 1
  name: heizen
  icon: generic
loadpoints:
- title: Garage
  charger: wallbox6
  mode: pv
  phases: 0
  mincurrent: 6
  maxcurrent: 32
  vehicle: ev4
  priority: 3
  resetOnDisconnect: true
  soc:
    poll:
      mode: charging
      interval: 10m
    estimate: true
- title: Poolpumpe
  charger: shellysolar
  meter: shelly_m_Poolpumpe
  vehicle: heizen
  mode: pv
  phases: 1
  mincurrent: 0.07
  maxcurrent: 3
  priority: 1
  resetOnDisconnect: true
  enable:
    threshold: 0
    delay: 10s
  disable:
    threshold: 200
    delay: 10m
  guardduration: 5m

site:
  title: Zugspitzstrasse
  meters:
    grid: grid1
    pv:
    - pv2
    battery:
    - battery3

Log details

root@evcc:~# evcc --log debug
[main  ] INFO 2023/08/21 11:01:34 evcc 0.118.11
[main  ] INFO 2023/08/21 11:01:34 using config file: /etc/evcc.yaml
[main  ] INFO 2023/08/21 11:01:34 starting ui and api at :7070
[db    ] INFO 2023/08/21 11:01:35 using sqlite database: /root/.evcc/evcc.db
[main  ] ERROR 2023/08/21 11:01:35 creating vehicle heizen failed: cannot create vehicle 'custom': soc: invalid plugin source: 
[site  ] WARN 2023/08/21 11:01:36 battery configured but residualPower is missing (add residualPower: 100 to site)
[site  ] WARN 2023/08/21 11:01:36 vehicle 'Heizstab (offline)' does not support automatic detection
[site  ] INFO 2023/08/21 11:01:36 site config:
[site  ] INFO 2023/08/21 11:01:36   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2023/08/21 11:01:36     grid:      power ✓ energy ✓ currents ✗
[site  ] INFO 2023/08/21 11:01:36     pv 1:      power ✓ energy ✓ currents ✗
[site  ] INFO 2023/08/21 11:01:36     battery 1: power ✓ energy ✓ currents ✗ soc ✓ capacity ✗
[site  ] INFO 2023/08/21 11:01:36   vehicles:
[site  ] INFO 2023/08/21 11:01:36     vehicle 1: range ✓ finish ✓ status ✓ climate ✗ wakeup ✗
[site  ] INFO 2023/08/21 11:01:36     vehicle 2: range ✓ finish ✗ status ✓ climate ✗ wakeup ✗
[site  ] INFO 2023/08/21 11:01:36     vehicle 3: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[lp-1  ] INFO 2023/08/21 11:01:36 loadpoint 1:
[lp-1  ] INFO 2023/08/21 11:01:36   mode:        pv
[lp-1  ] INFO 2023/08/21 11:01:36   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2023/08/21 11:01:36   meters:      charge ✓
[lp-1  ] INFO 2023/08/21 11:01:36     charge:    power ✓ energy ✓ currents ✓
[lp-2  ] INFO 2023/08/21 11:01:36 loadpoint 2:
[lp-2  ] INFO 2023/08/21 11:01:36   mode:        pv
[lp-2  ] INFO 2023/08/21 11:01:36   charger:     power ✓ energy ✓ currents ✗ phases ✗ wakeup ✗
[lp-2  ] INFO 2023/08/21 11:01:36   meters:      charge ✓
[lp-2  ] INFO 2023/08/21 11:01:36     charge:    power ✓ energy ✓ currents ✗
[lp-1  ] DEBUG 2023/08/21 11:01:36 phase timer inactive
[lp-1  ] DEBUG 2023/08/21 11:01:36 pv timer inactive
[lp-1  ] DEBUG 2023/08/21 11:01:36 guard timer inactive
[lp-1  ] INFO 2023/08/21 11:01:36 vehicle updated: unknown -> Volvo XC90E
[lp-1  ] DEBUG 2023/08/21 11:01:36 max charge current: 6A
[lp-2  ] DEBUG 2023/08/21 11:01:36 phase timer inactive
[lp-2  ] DEBUG 2023/08/21 11:01:36 pv timer inactive
[lp-2  ] DEBUG 2023/08/21 11:01:36 guard timer inactive
[lp-2  ] INFO 2023/08/21 11:01:36 vehicle updated: unknown -> Heizstab (offline)
[lp-2  ] DEBUG 2023/08/21 11:01:36 max charge current: 0.07A
[site  ] WARN 2023/08/21 11:01:36 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site  ] DEBUG 2023/08/21 11:01:36 ----
[lp-1  ] DEBUG 2023/08/21 11:01:36 charge power: -7W
[lp-2  ] DEBUG 2023/08/21 11:01:36 charge power: 914W
[site  ] DEBUG 2023/08/21 11:01:36 pv power: 8286W
[site  ] DEBUG 2023/08/21 11:01:36 battery soc: 0%
[site  ] DEBUG 2023/08/21 11:01:36 battery power: 0W
[site  ] DEBUG 2023/08/21 11:01:36 grid power: -6780W
[site  ] DEBUG 2023/08/21 11:01:36 site power: -6780W
[lp-1  ] DEBUG 2023/08/21 11:01:36 charge currents: [0.494 0 0.076]A
[lp-1  ] DEBUG 2023/08/21 11:01:36 charge total import: 81.840kWh
[lp-1  ] DEBUG 2023/08/21 11:01:36 charger status: C
[lp-1  ] INFO 2023/08/21 11:01:36 car connected
[lp-1  ] DEBUG 2023/08/21 11:01:36 pv timer elapse
[lp-1  ] DEBUG 2023/08/21 11:01:36 pv timer inactive
[lp-1  ] DEBUG 2023/08/21 11:01:36 charger: guard elapse
[lp-1  ] DEBUG 2023/08/21 11:01:36 guard timer inactive
[lp-1  ] DEBUG 2023/08/21 11:01:36 charge total import: 81.840kWh
[lp-1  ] INFO 2023/08/21 11:01:36 start charging ->
[lp-1  ] DEBUG 2023/08/21 11:01:36 wake-up timer: stop
[lp-1  ] DEBUG 2023/08/21 11:01:36 soc estimated: 0.00% (vehicle: 0.00%)
[lp-1  ] DEBUG 2023/08/21 11:01:36 vehicle soc: 0%
[lp-1  ] DEBUG 2023/08/21 11:01:36 vehicle range: 0km
[lp-1  ] DEBUG 2023/08/21 11:01:36 pv charge current: 12.3A = 2.49A + 9.83A (-6780W @ 3p)
[lp-1  ] DEBUG 2023/08/21 11:01:37 pv timer reset
[lp-1  ] DEBUG 2023/08/21 11:01:37 pv timer inactive
[lp-1  ] DEBUG 2023/08/21 11:01:37 max charge current: 12A
[site  ] DEBUG 2023/08/21 11:01:46 ----
[lp-1  ] DEBUG 2023/08/21 11:01:46 charge power: -7W
[lp-2  ] DEBUG 2023/08/21 11:01:46 charge power: 873W
[site  ] DEBUG 2023/08/21 11:01:46 pv power: 8290W
[site  ] DEBUG 2023/08/21 11:01:46 battery soc: 0%
[site  ] DEBUG 2023/08/21 11:01:46 battery power: 0W
[site  ] DEBUG 2023/08/21 11:01:46 grid power: -6644W
[site  ] DEBUG 2023/08/21 11:01:46 site power: -6644W
[lp-2  ] DEBUG 2023/08/21 11:01:46 charge total import: 40.658kWh
[lp-2  ] DEBUG 2023/08/21 11:01:46 charger status: C
[lp-2  ] DEBUG 2023/08/21 11:01:47 charge start energy: 40.7kWh
[lp-2  ] INFO 2023/08/21 11:01:47 car connected
[lp-2  ] DEBUG 2023/08/21 11:01:47 pv timer elapse
[lp-2  ] DEBUG 2023/08/21 11:01:47 pv timer inactive
[lp-2  ] DEBUG 2023/08/21 11:01:47 charger: guard elapse
[lp-2  ] DEBUG 2023/08/21 11:01:47 guard timer inactive
[lp-2  ] DEBUG 2023/08/21 11:01:47 charge total import: 40.658kWh
[lp-2  ] DEBUG 2023/08/21 11:01:47 charge start energy: 40.7kWh
[lp-2  ] INFO 2023/08/21 11:01:47 start charging ->
[lp-2  ] DEBUG 2023/08/21 11:01:47 wake-up timer: stop
[lp-2  ] DEBUG 2023/08/21 11:01:47 pv charge current: 29A = 0.07A + 28.9A (-6644W @ 1p)
[lp-2  ] DEBUG 2023/08/21 11:01:47 pv timer reset
[lp-2  ] DEBUG 2023/08/21 11:01:47 pv timer inactive
[lp-2  ] DEBUG 2023/08/21 11:01:47 max charge current: 3A
[site  ] DEBUG 2023/08/21 11:01:56 ----
[lp-1  ] DEBUG 2023/08/21 11:01:56 charge power: -8W
[lp-2  ] DEBUG 2023/08/21 11:01:56 charge power: 913W
[main  ] DEBUG 2023/08/21 11:01:56 lp Garage at prio 3 gets additional 913W from Poolpumpe at prio 1, total 913W
[site  ] DEBUG 2023/08/21 11:01:56 pv power: 8293W
[site  ] DEBUG 2023/08/21 11:01:56 battery soc: 0%
[site  ] DEBUG 2023/08/21 11:01:56 battery power: 0W
[site  ] DEBUG 2023/08/21 11:01:56 grid power: -6777W
[site  ] DEBUG 2023/08/21 11:01:56 giving loadpoint priority for additional: 913W
[site  ] DEBUG 2023/08/21 11:01:56 site power: -7690W
[lp-1  ] DEBUG 2023/08/21 11:01:56 charge currents: [0.494 0 0.076]A
[lp-1  ] DEBUG 2023/08/21 11:01:56 charge total import: 81.840kWh
[lp-1  ] DEBUG 2023/08/21 11:01:56 charger status: C
[lp-1  ] DEBUG 2023/08/21 11:01:56 soc estimated: 0.00% (vehicle: 0.00%)
[lp-1  ] DEBUG 2023/08/21 11:01:56 vehicle soc: 0%
[lp-1  ] DEBUG 2023/08/21 11:01:56 vehicle range: 0km
[lp-1  ] DEBUG 2023/08/21 11:01:56 available power 7683W > 4140W min 3p threshold
[lp-1  ] DEBUG 2023/08/21 11:01:56 start phase scale3p timer
[lp-1  ] DEBUG 2023/08/21 11:01:56 phase scale3p in 1m0s
[lp-1  ] DEBUG 2023/08/21 11:01:56 pv charge current: 13.6A = 2.49A + 11.1A (-7690W @ 3p)
[lp-1  ] DEBUG 2023/08/21 11:01:57 max charge current: 13A

What type of operating system are you running?

Linux

Version

evcc version 0.118.11

VolkerK62 commented 1 year ago

Schau dir doch mal die Ausgabe von evcc vehicle --log trace an, ob in der Antwort diese Daten enthalten sind.

andig commented 1 year ago

lp Garage at prio 3 gets additional 913W from Poolpumpe at prio 1, total 913W

Die Priorisierung der Ladepunkte funktioniert- schön zu sehen :)

andig commented 1 year ago

Gelöscht- da waren Deine Tokens enthalten!

rssprinter commented 1 year ago

Also Fehlermeldungen zum Volvo kommen keine:

Der Status wird mit 200 angegeben, was I.O. ist nach der Volvo Beschreibung

Status code | Description 200 OK | Indicates a successful request.

[volvo-cc] TRACE 2023/08/21 20:29:19 { "vehicles" : [ { "id" : "***" } ] }

ev4

[volvo-cc] TRACE 2023/08/21 20:29:23 GET https://api.volvocars.com/energy/v1/vehicles/***/recharge-status [volvo-cc] TRACE 2023/08/21 20:29:23 { "status" : 200, "operationId" : "731.....................................", "data" : { } } Soc: 0% Capacity: 12.6kWh Charge status: A Range: 0km Finish time: 0001-01-01 00:00:00 +0000 UTC Features: []

VolkerK62 commented 1 year ago

Das ist weniger als nichts. Der Volvo wird nur deshalb als "verbunden" angezeigt, weil du ihn dem Loadpoint fest zugewiesen hast vehicle: ev4. Und "online" ist er, weil der Abruf keinen Fehler bringt. Darin sind aber keine Daten enthalten.

andig commented 1 year ago

Gerne mal Zugangsdaten an info@evcc.io. Hier kommen wir anscheinend nicht weiter, die Logs sind unvollständig.

andig commented 1 year ago

Leider kommt da überhaupt nix:

{
  "status" : 200,
  "operationId" : "d3984e4b-83db-4eea-bf95-afb15a5efd24",
  "data" : { }
}

Jetzt ist guter Rat teuer. Ich würde vorschlagen, mal von Deinem Konto aus den Volvo Entwicklersupport zu kontaktieren warum das so ist.

m-kloeckner commented 10 months ago

Ich habe leider exakt das gleiche Problem. Auch ein XC90 Recharge MJ 2022. Die Volvo API liefert keine Daten. Gibt es hier neue Erkenntnisse?

[volvo-cc] TRACE 2023/11/23 14:39:37 GET https://api.volvocars.com/energy/v1/vehicles/xxxx/recharge-status
[volvo-cc] TRACE 2023/11/23 14:39:37 {
  "status" : 200,
  "operationId" : "e2a80ed7-xxxx-xxxx-xxxx-626a459850f2",
  "data" : { }
}
Soc:           0%
Capacity:      11.6kWh
Charge status: A
Range:         0km
Finish time:   0001-01-01 00:53:28 +0053 LMT
Features:      []
andig commented 10 months ago

Am Vorschlag hat sich nichts geändert:

https://github.com/evcc-io/evcc/issues/9476#issuecomment-1688064356

m-kloeckner commented 10 months ago

OK. Scheinbar ist die Sache ist ziemlich eindeutig. Laut Volvo unterstützen nur PHEVs ab BJ2023 (die mit Google) die Energy API.

This API works for all plug-in hybrid and electric vehicles which are equipped with Google Automotive System (Google built-in).

List of supported cars:

XC40 and C40 BEV. XC60 PHEV, S90 PHEV, V90 PHEV from model year 2022. XC90 PHEV, S60 PHEV, V60 PHEV from model year 2023. https://developer.volvocars.com/apis/energy/v1/overview/#availability

Was bedeutet, dass ältere Modelle mit der Legacy Implementierung arbeiten müssen.