evcc-io / evcc

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

[EEBus] Porsche Mobile Charger Plus Probleme beim Verbindungsaufbau #15438

Closed Neverminda closed 1 month ago

Neverminda commented 2 months ago

Describe the bug

Als erstes ein riesiges Lob an alle die EVCC möglich gemacht haben.

Da meine Pulsar in Verbindung mit EVCC beim Taycan nicht ganz so smooth läuft wie mein ID dachte ich mir ich versuche mal mein Glück mit dem PMCP. Nach dem ich nun eine (hoffentlich) vernünftige config hinbekommen haben, und der EEBus Support noch Experimentell ist, will es nicht verpassen und ein paar Erfahrungen mit euch teilen.

Es war ziemlich schwierig den PMCP dazu zu überreden eine Verbindung mit EVCC herzustellen. Geklappt hat es letztendlich mit ver Version 0.128.1. Andere Versionen (0.129.0, 0.129.0 (3798d4ea), 0.127.1) wurden vom PMCP gar nicht "akzeptiert"

Leider kann auch die Version 0.128.1 keinen Status des PMCP erkennen, zumindest in der UI ist nicht zu sehen.

In den Logs sind mir 2 Dinge aufgefallen: [eebus ] DEBUG 2024/08/16 16:41:38 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host MobileChargerPlus-0048524 läuft unter der IP 192.168.9.11 auf 192.168.9.1 läuft der DNS (scheint nur einer von mehreren Versuchen zu sein)

interessanter ist glaube ich: SHIP handshake error: invalid character '\x00' after top-level value

Ihr wisst sicher mehr mit den Logs anzufangen.

Config: evcc.yaml.txt

Logs: evcc-20240816-173503-debug.log evcc-20240816-170025-debug.log evcc-20240816-164714-debug.log evcc-20240816-154719-debug.log

Steps to reproduce

1. 2. 3. ...

Configuration details

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

log: debug
levels:
  cache: error

#database configuration for persisting charge sessions and settings
database:
  type: sqlite
  dsn: /var/lib/evcc/evcc.db

# unique installation id
plant: 76ae1e651abbdb6bd4deecdb7caf6feb3f0292cef776fc0c4c6af9d4541fa524

interval: 30s # control cycle interval

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.2882
    zones:
      - days: Mo-So
        hours: 22-0
        price: 0.2024
      - days: Mo-So
        hours: 0-6
        price: 0.2024

meters:
- name: pvbalkon
  type: custom
  power:
    source: http
    uri:  http://shellypmminig3-54320455066c.fritz.box/rpc/Shelly.GetStatus
    jq: -."pm1:0".apower

- name: envoy 
  type: template
  template: enphase 
  usage: pv
  host: envoy.fritz.box
  token: MYTOKEN

- name: envoy_grid
  type: template
  template: enphase
  usage: grid
  host: envoy.fritz.box
  token: MYTOKEN  

- name: grid1
  type: template
  template: powerfox-poweropti
  usage: grid
  user: USER
  password: PASS

- name: Enphase_battery
  type: custom
  power:
    source: http
    uri: http://envoy.fritz.box/ivp/livedata/status
    method: GET
    auth:
      type: bearer
      password: MYTOKEN 
    insecure: true
    jq: .meters.storage.agg_p_mw
    scale: 0.001
  soc:
    source: http
    uri: http://envoy.fritz.box/ivp/livedata/status
    method: GET
    auth:
      type: bearer
      password: MYTOKEN 
    insecure: true
    jq: .meters.soc
  capacity: 7 # kWh

chargers:

- name: pulsarpro
  type: template
  template: pulsarplus
  timeout: 2m # optional

- name: MobileCharger
  type: template
  template: pmcp
  ski: 6c40-1f76-71f6-4d68-2ed5-a2e0-48a3-efb9-de76-69db

vehicles:
- name: id4
  type: template
  template: vw 
  title: id.4  
  user: USER 
  password: PASS  
  vin: VIN  
  capacity: 77  
  timeout: 10s  

- name: taycan
  type: custom
  title: Taycan
  capacity: 93

loadpoints:
- title: Pulsar
  charger: pulsarpro
  mode: pv
  priority: 2

- title: PorscheCharger
  charger: MobileCharger
  vehicle: taycan
  mode: pv

site:
- title: Castle Schmitt
  meters:
    grid: grid1
    pv:
    - envoy
    - pvbalkon
    battery:
    - Enphase_battery
  residualPower: 100

eebus:
  shipid: EVCC
  interfaces:
    - wlan0
  certificate:
    public: |
      -----BEGIN CERTIFICATE-----
      -----END CERTIFICATE-----

    private: |
      -----BEGIN EC PRIVATE KEY-----
      -----END EC PRIVATE KEY-----

Log details

Logfiles sind auch attached, leider nur Debug habe zu spät gesehen das ihr trace wollt, sorry
hier ein Ausschnitt der 0.129.0 (3798d4ea)
...
[eebus ] INFO 2024/08/16 16:39:56 Local SKI:  a632ace8dd192a289bfb974d03013647fdaeb6ca
[eebus ] DEBUG 2024/08/16 16:39:56 starting websocket server on :4712
[eebus ] DEBUG 2024/08/16 16:39:56 mdns: announce
[eebus ] DEBUG 2024/08/16 16:39:56 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:39:56 mdns: start search
[main  ] INFO 2024/08/16 16:39:56 listening at :7070
[ocpp-1] DEBUG 2024/08/16 16:39:56 waiting for chargepoint: 5m0s
[eebus ] DEBUG 2024/08/16 16:39:57 mdns: avahi - no IPv4 addresses available EVCC_HEMS_01
[ocpp  ] INFO 2024/08/16 16:40:00 charge point connected, registering: 1095734
[ocpp-1] DEBUG 2024/08/16 16:40:03 hijacking transaction: 1
[eebus ] DEBUG 2024/08/16 16:40:45 incoming connection request from 6c401f7671f64d682ed5a2e048a3efb9de7669db
[eebus ] DEBUG 2024/08/16 16:40:45 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:40:45 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:40:45 mdns: announce
[eebus ] DEBUG 2024/08/16 16:40:45 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:40:47 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:40:47 delaying connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db by 2.886s to minimize double connection probability
[eebus ] DEBUG 2024/08/16 16:40:49 incoming connection request from 6c401f7671f64d682ed5a2e048a3efb9de7669db
[eebus ] DEBUG 2024/08/16 16:40:49 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:40:49 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:40:49 mdns: announce
[eebus ] DEBUG 2024/08/16 16:40:49 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:40:50 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local
[eebus ] DEBUG 2024/08/16 16:40:50 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local:82/ship/
[eebus ] DEBUG 2024/08/16 16:40:50 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host
[eebus ] DEBUG 2024/08/16 16:40:50 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11
[eebus ] DEBUG 2024/08/16 16:40:50 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11:82/ship/
[eebus ] DEBUG 2024/08/16 16:40:51 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:40:51 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:40:51 mdns: announce
[eebus ] DEBUG 2024/08/16 16:40:51 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:40:53 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:40:53 delaying connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db by 6.408s to minimize double connection probability
[eebus ] DEBUG 2024/08/16 16:40:56 incoming connection request from 6c401f7671f64d682ed5a2e048a3efb9de7669db
[eebus ] DEBUG 2024/08/16 16:40:56 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:40:56 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:40:56 mdns: announce
[eebus ] DEBUG 2024/08/16 16:40:56 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:40:58 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:40:59 incoming connection request from 6c401f7671f64d682ed5a2e048a3efb9de7669db
[eebus ] DEBUG 2024/08/16 16:40:59 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:40:59 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:40:59 mdns: announce
[eebus ] DEBUG 2024/08/16 16:40:59 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:41:00 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local
[eebus ] DEBUG 2024/08/16 16:41:00 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:00 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host
[eebus ] DEBUG 2024/08/16 16:41:00 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11
[eebus ] DEBUG 2024/08/16 16:41:00 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:01 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:41:01 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:41:01 mdns: announce
[eebus ] DEBUG 2024/08/16 16:41:01 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:41:03 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:41:03 delaying connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db by 14.546s to minimize double connection probability
[eebus ] DEBUG 2024/08/16 16:41:03 incoming connection request from 6c401f7671f64d682ed5a2e048a3efb9de7669db
[eebus ] DEBUG 2024/08/16 16:41:04 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:41:04 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:41:04 mdns: announce
[eebus ] DEBUG 2024/08/16 16:41:04 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:41:05 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:41:17 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local
[eebus ] DEBUG 2024/08/16 16:41:17 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:18 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host
[eebus ] DEBUG 2024/08/16 16:41:18 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11
[eebus ] DEBUG 2024/08/16 16:41:18 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:19 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:41:19 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:41:19 mdns: announce
[eebus ] DEBUG 2024/08/16 16:41:19 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:41:19 delaying connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db by 18.719s to minimize double connection probability
[eebus ] DEBUG 2024/08/16 16:41:21 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[main  ] FATAL 2024/08/16 16:41:26 cannot create charger 'MobileCharger': cannot create charger type 'template': cannot create charger type 'eebus': timeout
[main  ] FATAL 2024/08/16 16:41:26 will attempt restart in: 15m0s
[eebus ] DEBUG 2024/08/16 16:41:38 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local
[eebus ] DEBUG 2024/08/16 16:41:38 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:38 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host
[eebus ] DEBUG 2024/08/16 16:41:38 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11
[eebus ] DEBUG 2024/08/16 16:41:38 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:39 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:41:39 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected
[eebus ] DEBUG 2024/08/16 16:41:39 mdns: announce
[eebus ] DEBUG 2024/08/16 16:41:39 mdns: using avahi
[eebus ] DEBUG 2024/08/16 16:41:39 delaying connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db by 18.253s to minimize double connection probability
[eebus ] DEBUG 2024/08/16 16:41:41 ski: 6c401f7671f64d682ed5a2e048a3efb9de7669db name: Porsche-EVSE-0048524 brand: Porsche model: BasisPlus-EVSE typ: EVSE identifier: Porsche-EVSE-0048524 register: false host: MobileChargerPlus-0048524.local port: 82 addresses: [192.168.9.11]
[eebus ] DEBUG 2024/08/16 16:41:57 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local
[eebus ] DEBUG 2024/08/16 16:41:57 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at MobileChargerPlus-0048524.local:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:58 connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db failed: dial tcp: lookup MobileChargerPlus-0048524.local on 192.168.9.1:53: no such host
[eebus ] DEBUG 2024/08/16 16:41:58 trying to connect to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11
[eebus ] DEBUG 2024/08/16 16:41:58 initiating connection to 6c401f7671f64d682ed5a2e048a3efb9de7669db at 192.168.9.11:82/ship/
[eebus ] DEBUG 2024/08/16 16:41:59 6c401f7671f64d682ed5a2e048a3efb9de7669db SHIP handshake error: invalid character '\x00' after top-level value
[eebus ] DEBUG 2024/08/16 16:41:59 ski 6c401f7671f64d682ed5a2e048a3efb9de7669db disconnected

What type of operating system are you running?

Linux

Version

multiple

DerAndereAndi commented 1 month ago

Danke für den Report. Wäre es möglich ein Log mit EEBUS auf 'TRACE' level zu bekommen?

Neverminda commented 1 month ago

Klar, hier zwei von der aktuellen nightly. Einmal ohne restart der PMCP und der 2. mit restart.

evcc-20240816-233038-trace.log evcc-20240816-233546-trace.log

DerAndereAndi commented 1 month ago

Danke für die neuen Logs. Die PMCP schickt ungültige Daten in 2 Nachrichten welche nicht verarbeitet werden können. Das sieht für mich nach einem Bug in der Software des Gerätes aus. Ich könnte versuchen rauszufiltern, aber sehe das nicht als oberste Prio zur Zeit an.

andig commented 1 month ago

Machen wir hier zu- kein evcc Thema 👍🏻