Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wattpilot via OCPP startet Laden bei PhaseSwitch #16902

Closed
1 task done
kad49007 opened this issue Oct 27, 2024 · 1 comment · Fixed by #17003
Closed
1 task done

Wattpilot via OCPP startet Laden bei PhaseSwitch #16902

kad49007 opened this issue Oct 27, 2024 · 1 comment · Fixed by #17003
Assignees
Labels
bug Something isn't working devices Specific device support

Comments

@kad49007
Copy link
Contributor

Describe the bug

Habe 2 Wattpiloten via OCPP angebunden.
Beim PhaseSwitch eines inaktiven (=es wird aktuell nicht geladen) Ladepunktes startet das übertragene OCPP Kommando das Laden an diesem Ladepunkte.

Eventuell müsste man bei einem deaktivierten Ladepunkte auch den Wert current auf 0 setzen.
Leider konnte ich mit dem Nightly nicht testen, da mit der Version mein Meter per Modbus nicht erreichbar war.

Steps to reproduce

  1. s.o.

...

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: debug
  mini: debug
  site: debug
  lp-1: debug
  lp-2: trace 
  eMini: trace
  e-Tron: trace
  charger: trace
  aux: trace
  ocpp: trace
  wattpilot: trace

# unique installation id
plant: XXX

interval: 10s # control cycle interval

meters:
- type: template
  template: fronius-gen24 
  usage: grid  
  host: 192.168.4.67  
  name: grid1
- type: template
  template: fronius-gen24 
  usage: pv
  host: 192.168.4.15
  name: pv
- type: template
  template: fronius-gen24 
  usage: pv  
  host: 192.168.4.67  
  name: pv2
- type: template
  template: fronius-gen24 
  usage: battery  
  host: 192.168.4.67  
  name: battery3
  capacity: 19.3
- name: Heizstab
  type: template
  template: fronius-ohmpilot
  usage: aux
  host: 192.168.4.67
   
  
  
chargers:
- type: template
  name: wallbox2
  template: ocpp-fronius-wattpilot 
  stationid: ocppWattpilot2

- type: template
  name: wallbox1
  template: ocpp-fronius-wattpilot
  stationid: ocppWattpilot1

vehicles:
- type: template
  template: mini 
  title: eMini Neu
  user: XXX
  password: XXX
  vin: XXX 
  capacity: 54  
  phases: 3  
  icon: car  
  cache: 15m  
  mode: PV 
  minCurrent: 6  
  maxCurrent: 16  
  name: emini

- type: template
  template: audi 
  title: e-Tron
  user: XXX
  password: XXX  
  vin: XXX 
  capacity: 100  
  phases: 3  
  icon: car  
  cache: 15m  
  mode: PV 
  minCurrent: 6  
  maxCurrent: 16  
  name: e-Tron

- type: template
  template: vw 
  title: ID.3
  user: XXX
  password: XXX
  vin: XXX
  capacity: 82  
  phases: 3  
  icon: car  
  cache: 15m  
  mode: PV 
  minCurrent: 6  
  maxCurrent: 16  
  name: ID.3

loadpoints:
- title: Wattpilot 2
  charger: wallbox2
  vehicle: emini
  mode: pv
  priority: 1
  soc:
    poll:
      mode: connected
      interval: 15m
    estimate: true
  disable:
    delay: 2m
- title: Wattpilot 1
  charger: wallbox1
  vehicle: e-Tron
  mode: pv
  priority: 0
  soc:
    poll:
      mode: connected
      interval: 15m
    estimate: true
  enable:
    delay: 3m
  disable:
    delay: 5m

site:
  title: xxx
  meters:
    grid: grid1
    pv:
    - pv
    - pv2
    battery:
    - battery3
    aux:
    - Heizstab
  residualPower: 100
  

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

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

  co2:
    type: grünstromindex  
    zip: XXX 


sponsortoken: XXX

Log details

[site  ] DEBUG 2024/10/27 10:26:38 pv 1 power: 4089W
[site  ] DEBUG 2024/10/27 10:26:38 pv power: 6388W
[site  ] DEBUG 2024/10/27 10:26:38 site power: -5895W
[lp-2  ] DEBUG 2024/10/27 10:26:38 charge total import: 4185.136kWh
[lp-2  ] DEBUG 2024/10/27 10:26:38 charger status: B
[lp-2  ] DEBUG 2024/10/27 10:26:38 next soc poll remaining time: 8m40s
[lp-2  ] DEBUG 2024/10/27 10:26:38 !! pvScalePhases DOWN activePhases: 1, available power: 5895W, scalable: false
[lp-2  ] DEBUG 2024/10/27 10:26:38 !! pvScalePhases UP maxPhases: 3, available power: 5895W, scalable: true
[lp-2  ] DEBUG 2024/10/27 10:26:38 available power 5895W > 4140W min 3p threshold
[lp-2  ] DEBUG 2024/10/27 10:26:38 phase scale3p in 0s
[ocpp  ] TRACE 2024/10/27 10:26:38 enqueued CALL [1680335594, SetChargingProfile] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:38 dispatched request 1680335594 for ocppWattpilot1
-->
[ocpp  ] TRACE 2024/10/27 10:26:38 sent JSON message to ocppWattpilot1: [2,"1680335594","SetChargingProfile",{"connectorId":1,"csChargingProfiles":{"chargingProfileId":20,"stackLevel":20,"chargingProfilePurpose":"TxDefaultProfile","chargingProfileKind":"Absolute","chargingSchedule":{"startSchedule":"2024-10-27T09:25:38Z","chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":6,"numberPhases":3}]}}}]
[ocpp  ] TRACE 2024/10/27 10:26:38 started timeout timer for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:39 received JSON message from ocppWattpilot1: [3,"1680335594",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/10/27 10:26:39 handling incoming CALL RESULT [1680335594] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:39 completed request 1680335594 for ocppWattpilot1
[lp-2  ] DEBUG 2024/10/27 10:26:39 switched phases: 3p
[lp-2  ] DEBUG 2024/10/27 10:26:39 phase timer inactive
[ocpp  ] TRACE 2024/10/27 10:26:39 ocppWattpilot1 ready to transmit again
[ocpp  ] TRACE 2024/10/27 10:26:39 timeout canceled for ocppWattpilot1
[lp-2  ] DEBUG 2024/10/27 10:26:39 pv charge current: 8.54A = 0A + 8.54A (-5895W @ 3p)
[lp-2  ] DEBUG 2024/10/27 10:26:39 site power -5895W <= 0W enable threshold
[lp-2  ] DEBUG 2024/10/27 10:26:39 pv enable timer start: 3m0s
[lp-2  ] DEBUG 2024/10/27 10:26:39 pv enable in 3m0s
[ocpp  ] TRACE 2024/10/27 10:26:39 enqueued CALL [1822876336, TriggerMessage] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:39 dispatched request 1822876336 for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:39 sent JSON message to ocppWattpilot1: [2,"1822876336","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/10/27 10:26:39 started timeout timer for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 received JSON message from ocppWattpilot1: [2,"531868790","MeterValues",{"connectorId":1,"transactionId":1729837542,"meterValue":[{"timestamp":"2024-10-27T09:26:38.264Z","sampledValue":[{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L1"},{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L2"},{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L3"},{"value":"0.00","measurand":"Current.Offered","unit":"A"},{"value":"4185136.00","measurand":"Energy.Active.Import.Register","unit":"Wh"},{"value":"49.89","measurand":"Frequency"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L1"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L2"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L3"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W"},{"value":"0.00","measurand":"Power.Offered","unit":"W"},{"value":"22.50","measurand":"Temperature","unit":"Celsius"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L1"},{"value":"231.00","measurand":"Voltage","unit":"V","phase":"L2"},{"value":"231.00","measurand":"Voltage","unit":"V","phase":"L3"},{"value":"0.00","measurand":"Voltage","unit":"V","phase":"N"}]}]}]
[ocpp  ] TRACE 2024/10/27 10:26:40 handling incoming CALL [531868790, MeterValues] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent CALL RESULT [531868790] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent JSON message to ocppWattpilot1: [3,"531868790",{}]
[ocpp  ] TRACE 2024/10/27 10:26:40 received JSON message from ocppWattpilot1: [3,"1822876336",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/10/27 10:26:40 handling incoming CALL RESULT [1822876336] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 completed request 1822876336 for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 ocppWattpilot1 ready to transmit again
[ocpp  ] TRACE 2024/10/27 10:26:40 timeout canceled for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 received JSON message from ocppWattpilot1: [2,"531868791","MeterValues",{"connectorId":1,"transactionId":1729837542,"meterValue":[{"timestamp":"2024-10-27T09:26:38.478Z","sampledValue":[{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L1"},{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L2"},{"value":"0.00","measurand":"Current.Import","unit":"A","phase":"L3"},{"value":"0.00","measurand":"Current.Offered","unit":"A"},{"value":"4185136.00","measurand":"Energy.Active.Import.Register","unit":"Wh"},{"value":"49.89","measurand":"Frequency"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L1"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L2"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W","phase":"L3"},{"value":"0.00","measurand":"Power.Active.Import","unit":"W"},{"value":"0.00","measurand":"Power.Offered","unit":"W"},{"value":"22.50","measurand":"Temperature","unit":"Celsius"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L1"},{"value":"231.00","measurand":"Voltage","unit":"V","phase":"L2"},{"value":"231.00","measurand":"Voltage","unit":"V","phase":"L3"},{"value":"0.00","measurand":"Voltage","unit":"V","phase":"N"}]}]}]
[ocpp  ] TRACE 2024/10/27 10:26:40 handling incoming CALL [531868791, MeterValues] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent CALL RESULT [531868791] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent JSON message to ocppWattpilot1: [3,"531868791",{}]
[ocpp  ] TRACE 2024/10/27 10:26:40 received JSON message from ocppWattpilot1: [2,"531868792","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"SuspendedEV","timestamp":"2024-10-27T09:26:38.690Z"}]
[ocpp  ] TRACE 2024/10/27 10:26:40 handling incoming CALL [531868792, StatusNotification] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent CALL RESULT [531868792] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:40 sent JSON message to ocppWattpilot1: [3,"531868792",{}]
[ocpp  ] TRACE 2024/10/27 10:26:43 received JSON message from ocppWattpilot1: [2,"531868793","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Charging","timestamp":"2024-10-27T09:26:41.584Z"}]
[ocpp  ] TRACE 2024/10/27 10:26:43 handling incoming CALL [531868793, StatusNotification] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:43 sent CALL RESULT [531868793] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:43 sent JSON message to ocppWattpilot1: [3,"531868793",{}]
...

ocpp  ] TRACE 2024/10/27 10:26:49 dispatched request 412730758 for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:49 sent JSON message to ocppWattpilot1: [2,"412730758","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/10/27 10:26:49 started timeout timer for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:49 enqueued CALL [412730758, TriggerMessage] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 received JSON message from ocppWattpilot1: [2,"531868794","MeterValues",{"connectorId":1,"transactionId":1729837542,"meterValue":[{"timestamp":"2024-10-27T09:26:48.261Z","sampledValue":[{"value":"5.90","measurand":"Current.Import","unit":"A","phase":"L1"},{"value":"5.90","measurand":"Current.Import","unit":"A","phase":"L2"},{"value":"6.00","measurand":"Current.Import","unit":"A","phase":"L3"},{"value":"6.00","measurand":"Current.Offered","unit":"A"},{"value":"4185139.58","measurand":"Energy.Active.Import.Register","unit":"Wh"},{"value":"49.99","measurand":"Frequency"},{"value":"1300.00","measurand":"Power.Active.Import","unit":"W","phase":"L1"},{"value":"1400.00","measurand":"Power.Active.Import","unit":"W","phase":"L2"},{"value":"1400.00","measurand":"Power.Active.Import","unit":"W","phase":"L3"},{"value":"4190.00","measurand":"Power.Active.Import","unit":"W"},{"value":"4140.00","measurand":"Power.Offered","unit":"W"},{"value":"22.62","measurand":"Temperature","unit":"Celsius"},{"value":"229.00","measurand":"Voltage","unit":"V","phase":"L1"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L2"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L3"},{"value":"0.00","measurand":"Voltage","unit":"V","phase":"N"}]}]}]
[ocpp  ] TRACE 2024/10/27 10:26:50 handling incoming CALL [531868794, MeterValues] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 sent CALL RESULT [531868794] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 sent JSON message to ocppWattpilot1: [3,"531868794",{}]
[ocpp  ] TRACE 2024/10/27 10:26:50 received JSON message from ocppWattpilot1: [3,"412730758",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/10/27 10:26:50 handling incoming CALL RESULT [412730758] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 completed request 412730758 for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 ocppWattpilot1 ready to transmit again
[ocpp  ] TRACE 2024/10/27 10:26:50 timeout canceled for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 received JSON message from ocppWattpilot1: [2,"531868795","MeterValues",{"connectorId":1,"transactionId":1729837542,"meterValue":[{"timestamp":"2024-10-27T09:26:48.499Z","sampledValue":[{"value":"5.90","measurand":"Current.Import","unit":"A","phase":"L1"},{"value":"5.90","measurand":"Current.Import","unit":"A","phase":"L2"},{"value":"6.00","measurand":"Current.Import","unit":"A","phase":"L3"},{"value":"6.00","measurand":"Current.Offered","unit":"A"},{"value":"4185139.58","measurand":"Energy.Active.Import.Register","unit":"Wh"},{"value":"49.99","measurand":"Frequency"},{"value":"1300.00","measurand":"Power.Active.Import","unit":"W","phase":"L1"},{"value":"1400.00","measurand":"Power.Active.Import","unit":"W","phase":"L2"},{"value":"1400.00","measurand":"Power.Active.Import","unit":"W","phase":"L3"},{"value":"4190.00","measurand":"Power.Active.Import","unit":"W"},{"value":"4140.00","measurand":"Power.Offered","unit":"W"},{"value":"22.62","measurand":"Temperature","unit":"Celsius"},{"value":"229.00","measurand":"Voltage","unit":"V","phase":"L1"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L2"},{"value":"230.00","measurand":"Voltage","unit":"V","phase":"L3"},{"value":"0.00","measurand":"Voltage","unit":"V","phase":"N"}]}]}]
[ocpp  ] TRACE 2024/10/27 10:26:50 handling incoming CALL [531868795, MeterValues] from ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 sent CALL RESULT [531868795] for ocppWattpilot1
[ocpp  ] TRACE 2024/10/27 10:26:50 sent JSON message to ocppWattpilot1: [3,"531868795",{}]

What type of operating system are you running?

Linux

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.131.1

@mfuchs1984
Copy link
Contributor

Ich habe mir #16622 noch nicht abschließend angeschaut, habe aber da den selben Verdacht. Es sieht dort so aus als würde beim anstecken unter bestimmten Bedingungen (Ladevorgang wurde am Fahrzeug beendet?) eine Phasenumschaltung ausgelöst werden, die dann eine Ladung startet, die dann wieder beendet wird.

@andig andig self-assigned this Oct 29, 2024
@andig andig added bug Something isn't working devices Specific device support labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devices Specific device support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants