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

Hybrid inverters with DC>AC power can result in unwanted grid supply #2734

Closed
ttjaden opened this issue Feb 28, 2022 · 4 comments · Fixed by #2735
Closed

Hybrid inverters with DC>AC power can result in unwanted grid supply #2734

ttjaden opened this issue Feb 28, 2022 · 4 comments · Fixed by #2735
Labels
bug Something isn't working

Comments

@ttjaden
Copy link

ttjaden commented Feb 28, 2022

Describe the bug
With hybrid inverters (kostal plenticore, fronius gen24, etc.) and pv generators > nominal ac power of the inverter, evcc assumes more pv generation than possible. Therefore, energy is drawn from the grid.

To Reproduce
Steps to reproduce the behavior:

  1. evcc v0.82
  2. installed DC PV generator power must be bigger than rated AC inverter power.
  3. wait for a sunny day :-)
  4. see the next pictures

15 kWp on a Fronius Symo Gen24 with 10 kVA rated power

Production
grafik

Usage:
grafik

Expected behavior

  • From 10:00 to 12:00 EVCC should control the evcc load to a total load of 9.5 kW
  • Instead it controls the load to 11.5 kW, which is MPPT1+2
  • But: MPPT1+2 can be greater than AC output power of the inverter, which is limited to 10 kVA, which means roughly 9.5 kW with an cosphi of 0.9

Solution:

  • Quick&Dirty: EVCC should calculate (MPPT1+2 minus battery charging power) as the available pvpower on the AC side.
  • or there has to be a kind of max() function be enabled with the pvpower_max_ac from the evcc.yaml
@andig andig added the question Rather clarification than issue label Feb 28, 2022
@ttjaden
Copy link
Author

ttjaden commented Feb 28, 2022

This is the part from the config

# 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
meters:
- name: pv
  type: custom
  power:
    source: calc
    add:
    - source: modbus
      model: sunspec
      uri: 192.168.178.74:502
      id: 1
      value: 160:1:DCW # mpp 1 pv
    - source: modbus
      model: sunspec
      uri: 192.168.178.74:502
      id: 1
      value: 160:2:DCW # mpp 2 pv

- name: battery
  type: custom
  power:
    source: calc
    add:
    - source: modbus
      model: sunspec
      uri: 192.168.178.74:502
      id: 1
      value: 160:3:DCW # mppt 3 charge
      scale: -1
    - source: modbus
      model: sunspec
      uri: 192.168.178.74:502
      id: 1
      value: 160:4:DCW # mppt 4 discharge
  soc:
    source: modbus
    model: sunspec
    uri: 192.168.178.74:502
    id: 1
    value: ChargeState

- name: grid
  type: modbus
  model: sunspec
  uri: 192.168.178.74:502
  id: 200
  power: 213:W # sunspec meter

@ttjaden
Copy link
Author

ttjaden commented Feb 28, 2022

This is the debug log
`

evcc

date stream content
2022-02-28 11:32:05 stdout [site  ] DEBUG 2022/02/28 12:32:05 grid power: 962W
2022-02-28 11:32:05 stdout [site  ] DEBUG 2022/02/28 12:32:05 ----
2022-02-28 11:31:50 stdout [lp-2  ] DEBUG 2022/02/28 12:31:50 charge currents: [0 0 0]A
2022-02-28 11:31:50 stdout [lp-2  ] DEBUG 2022/02/28 12:31:50 charge power: 0W
2022-02-28 11:31:50 stdout [lp-2  ] DEBUG 2022/02/28 12:31:50 charger status: A
2022-02-28 11:31:50 stdout [lp-2  ] DEBUG 2022/02/28 12:31:50 charge currents: [0 0 0]A
2022-02-28 11:31:50 stdout [lp-2  ] DEBUG 2022/02/28 12:31:50 charge power: 0W
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 site power: -419W
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 battery soc 0: 98%
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 battery power: -1542W
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 pv power: 11070W
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 grid power: 1123W
2022-02-28 11:31:50 stdout [site  ] DEBUG 2022/02/28 12:31:50 ----
2022-02-28 11:31:36 stdout [lp-1  ] DEBUG 2022/02/28 12:31:36 detected phases: 3p [13.6 13.5 13.6]A
2022-02-28 11:31:36 stdout [lp-1  ] DEBUG 2022/02/28 12:31:36 charge currents: [13.6 13.5 13.6]A
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 charge power: 9220W
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 max charge current: 14A
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 max charge current: 14.4A = 14A + 0.401A (-277W @ 3p)
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 vehicle odometer: 32708km
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 vehicle range: 54km
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 vehicle soc: 21%
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 soc estimated: 21.53% (vehicle: 21.00%)
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 next soc poll remaining time: 14m30s
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 charger status: C
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 detected phases: 3p [13.6 13.5 13.6]A
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 charge currents: [13.6 13.5 13.6]A
2022-02-28 11:31:35 stdout [lp-1  ] DEBUG 2022/02/28 12:31:35 charge power: 9220W
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 site power: -277W
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 battery soc 0: 98%
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 battery power: -1528W
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 pv power: 11074W
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 grid power: 1251W
2022-02-28 11:31:35 stdout [site  ] DEBUG 2022/02/28 12:31:35 ----
2022-02-28 11:31:20 stdout [lp-2  ] DEBUG 2022/02/28 12:31:20 charge currents: [0 0 0]A
2022-02-28 11:31:20 stdout [lp-2  ] DEBUG 2022/02/28 12:31:20 charge power: 0W
2022-02-28 11:31:20 stdout [lp-2  ] DEBUG 2022/02/28 12:31:20 charger status: A
2022-02-28 11:31:20 stdout [lp-2  ] DEBUG 2022/02/28 12:31:20 charge currents: [0 0 0]A
2022-02-28 11:31:20 stdout [lp-2  ] DEBUG 2022/02/28 12:31:20 charge power: 0W
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 site power: -372W
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 battery soc 0: 98%
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 battery power: -1487W
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 pv power: 11087W
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 grid power: 1115W
2022-02-28 11:31:20 stdout [site  ] DEBUG 2022/02/28 12:31:20 ----
2022-02-28 11:31:06 stdout [lp-1  ] DEBUG 2022/02/28 12:31:06 detected phases: 3p [10.2 10.2 10.2]A
2022-02-28 11:31:06 stdout [lp-1  ] DEBUG 2022/02/28 12:31:06 charge currents: [10.2 10.2 10.2]A
2022-02-28 11:31:06 stdout [lp-1  ] DEBUG 2022/02/28 12:31:06 charge power: 6950W
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 max charge current: 14A
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 max charge current: 14.7A = 11A + 3.7A (-2551W @ 3p)
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 vehicle odometer: 32708km
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 vehicle range: 54km
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 vehicle soc: 21%
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 soc estimated: 21.40% (vehicle: 21.00%)
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 next soc poll remaining time: 14m29s
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 charger status: C
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 detected phases: 3p [10.2 10.2 10.2]A
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 charge currents: [10.2 10.2 10.2]A
2022-02-28 11:31:05 stdout [lp-1  ] DEBUG 2022/02/28 12:31:05 charge power: 6950W
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 site power: -2551W
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 battery soc 0: 98%
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 battery power: -2460W
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 pv power: 11065W
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 grid power: -91W
2022-02-28 11:31:05 stdout [site  ] DEBUG 2022/02/28 12:31:05 ----
2022-02-28 11:30:50 stdout [lp-2  ] DEBUG 2022/02/28 12:30:50 charge currents: [0 0 0]A
2022-02-28 11:30:50 stdout [lp-2  ] DEBUG 2022/02/28 12:30:50 charge power: 0W
2022-02-28 11:30:50 stdout [lp-2  ] DEBUG 2022/02/28 12:30:50 charger status: A
2022-02-28 11:30:50 stdout [lp-2  ] DEBUG 2022/02/28 12:30:50 charge currents: [0 0 0]A
2022-02-28 11:30:50 stdout [lp-2  ] DEBUG 2022/02/28 12:30:50 charge power: 0W
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 site power: -2760W
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 battery soc 0: 98%
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 battery power: -2167W
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 pv power: 11088W
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 grid power: -593W
2022-02-28 11:30:50 stdout [site  ] DEBUG 2022/02/28 12:30:50 ----
2022-02-28 11:30:36 stdout [lp-1  ] DEBUG 2022/02/28 12:30:36 detected phases: 3p [10.3 10.1 10.3]A
2022-02-28 11:30:36 stdout [lp-1  ] DEBUG 2022/02/28 12:30:36 charge currents: [10.3 10.1 10.3]A
2022-02-28 11:30:36 stdout [lp-1  ] DEBUG 2022/02/28 12:30:36 charge power: 6980W
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 max charge current: 11A
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 max charge current: 11.5A = 11A + 0.518A (-358W @ 3p)
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 vehicle odometer: 32708km
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 vehicle range: 54km
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 vehicle soc: 21%
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 soc estimated: 21.30% (vehicle: 21.00%)
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 next soc poll remaining time: 14m29s
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 charger status: C
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 detected phases: 3p [10.3 10.1 10.3]A
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 charge currents: [10.3 10.1 10.3]A
2022-02-28 11:30:35 stdout [lp-1  ] DEBUG 2022/02/28 12:30:35 charge power: 6980W
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 site power: -358W
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 battery soc 0: 98%
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 battery power: -1552W
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 pv power: 11101W
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 grid power: 1194W
2022-02-28 11:30:35 stdout [site  ] DEBUG 2022/02/28 12:30:35 ----
2022-02-28 11:30:20 stdout [lp-2  ] DEBUG 2022/02/28 12:30:20 charge currents: [0 0 0]A
2022-02-28 11:30:20 stdout [lp-2  ] DEBUG 2022/02/28 12:30:20 charge power: 0W
2022-02-28 11:30:20 stdout [lp-2  ] DEBUG 2022/02/28 12:30:20 charger status: A
2022-02-28 11:30:20 stdout [lp-2  ] DEBUG 2022/02/28 12:30:20 charge currents: [0 0 0]A
2022-02-28 11:30:20 stdout [lp-2  ] DEBUG 2022/02/28 12:30:20 charge power: 0W
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 site power: -520W
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 battery soc 0: 98%
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 battery power: -1564W
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 pv power: 11103W
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 grid power: 1044W
2022-02-28 11:30:20 stdout [site  ] DEBUG 2022/02/28 12:30:20 ----
2022-02-28 11:30:06 stdout [lp-1  ] DEBUG 2022/02/28 12:30:06 detected phases: 3p [10.2 10.3 10.2]A
2022-02-28 11:30:06 stdout [lp-1  ] DEBUG 2022/02/28 12:30:06 charge currents: [10.2 10.3 10.2]A
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 charge power: 6990W
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 max charge current: 11A
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 max charge current: 11.5A = 11A + 0.487A (-336W @ 3p)
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 vehicle odometer: 32708km
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 vehicle range: 54km
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 vehicle soc: 21%
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 soc estimated: 21.20% (vehicle: 21.00%)
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 next soc poll remaining time: 14m29s
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 charger status: C
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 detected phases: 3p [10.2 10.3 10.2]A
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 charge currents: [10.2 10.3 10.2]A
2022-02-28 11:30:05 stdout [lp-1  ] DEBUG 2022/02/28 12:30:05 charge power: 6990W
2022-02-28 11:30:05 stdout [site  ] DEBUG 2022/02/28 12:30:05 site power: -336W
2022-02-28 11:30:05 stdout [site  ] DEBUG 2022/02/28 12:30:05 battery soc 0: 98%
2022-02-28 11:30:05 stdout [site  ] DEBUG 2022/02/28 12:30:05 battery power: -1551W
`

@ttjaden
Copy link
Author

ttjaden commented Feb 28, 2022

evcc.zip

@andig andig added bug Something isn't working and removed question Rather clarification than issue labels Feb 28, 2022
@andig andig changed the title With hybrid inverters the control of EVCC can result in unwanted grid supply Hybrid inverters with DC>AC power can result in unwanted grid supply Feb 28, 2022
@ttjaden
Copy link
Author

ttjaden commented Mar 9, 2022

I guess this logging graph explains the problem

grafik

Somehow EVCC has to reflect that pvpower can be limited on the AC side by the rated AC power of the inverter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants