evcc-io / evcc

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

Sometimes the black visualization bargraph overflows to the right #1787

Closed msome closed 2 years ago

msome commented 2 years ago

Describe the bug See attached picture, I think the upper brace (sun+grid) is shown correct, but the green bar is too long. Green bar shows 1.8kW sun, but the legend on the left says only 1.5kW. image

To Reproduce Steps to reproduce the behavior:

  1. I have attached below an dummy config file with static meter values which produce this bar situation for easy reproduction

Expected behavior I assume the green and the black grid power bars should be inside the braces, not one attached to the right.

EVCC details: Show output of evcc -v:

evcc version 0.66 (a5fb9d4)
Show evcc configuration file evcc.yaml:

uri: 0.0.0.0:7070 # uri for ui
interval: 10s # control cycle interval

# sponsor token enables optional features (request at https://cloud.evcc.io)
# sponsortoken:

# log settings
log: error
levels:
  core: debug
  lp-1: debug
  lp-2: debug

# 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: grid
  type: custom
  power:
    source: script
    cmd: >
       /bin/bash -c "echo 300"
- name: battery
  type: custom
  power:
    source: script
    cmd: >
       /bin/bash -c "echo -700"
  soc:
    source: script
    cmd: >
       /bin/bash -c "88"
- name: pv
  type: custom
  power:
    source: script
    cmd: >
       /bin/bash -c "echo 1500"

# site describes the EVU connection, PV and home battery
site:
  title: TestInstall # display name for UI
  meters:
    grid: grid # grid meter
    pvs:
    - pv # list of pv inverters/ meters
    battery: battery # battery meter
  prioritySoC: # give home battery priority up to this soc (empty to disable)
  bufferSoC: # ignore home battery discharge above soc (empty to disable)

chargers:
- name: testCharger
  type: go-e
  uri: http://127.0.0.1

loadpoints:
- title: Nowhere
  charger: testCharger

andig commented 2 years ago

Could you provide a logfile for this situation? Seems the calculation is wrong but I'm unsure where.

/cc @naltatis potentially my backend changed is not fully compatible with the UI logic?

msome commented 2 years ago

As I run it on docker, I'm not sure not to run with --debug... I enabled all log sections in yaml file with debug, hope it's enough.

# log settings
log: debug
levels:
  core: debug
  lp-1: debug
  lp-2: debug
  cache: debug
Show evcc log output with --log debug:
[main  ] INFO 2021/10/25 18:27:48 evcc 0.66 (a5fb9d4)
[main  ] INFO 2021/10/25 18:27:48 using config file /etc/evcc.yaml
[main  ] INFO 2021/10/25 18:27:48 listening at 0.0.0.0:7070
[cache ] DEBUG 2021/10/25 18:27:48 title: Nowhere
[cache ] DEBUG 2021/10/25 18:27:48 minCurrent: 6
[cache ] DEBUG 2021/10/25 18:27:48 maxCurrent: 16
[cache ] DEBUG 2021/10/25 18:27:48 phases: 3
[cache ] DEBUG 2021/10/25 18:27:48 activePhases: 3
[cache ] DEBUG 2021/10/25 18:27:48 hasVehicle: false
[cache ] DEBUG 2021/10/25 18:27:48 mode: off
[cache ] DEBUG 2021/10/25 18:27:48 targetSoC: 100
[cache ] DEBUG 2021/10/25 18:27:48 minSoC: 0
[lp-1  ] ERROR 2021/10/25 18:27:48 charger: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[site  ] INFO 2021/10/25 18:27:48 site config:
[site  ] INFO 2021/10/25 18:27:48   meters:    grid ✓ pv ✓ battery ✓
[cache ] DEBUG 2021/10/25 18:27:48 siteTitle: TestInstall
[cache ] DEBUG 2021/10/25 18:27:48 gridConfigured: true
[site  ] INFO 2021/10/25 18:27:48     grid:    power ✓ energy ✗ currents ✗
[site  ] INFO 2021/10/25 18:27:48     pv 0:    power ✓ energy ✗ currents ✗
[site  ] INFO 2021/10/25 18:27:48     battery 0: power ✓ energy ✗ currents ✗ soc ✓
[lp-1  ] INFO 2021/10/25 18:27:48 loadpoint 1:
[lp-1  ] INFO 2021/10/25 18:27:48   mode:      off
[cache ] DEBUG 2021/10/25 18:27:48 pvConfigured: true
[cache ] DEBUG 2021/10/25 18:27:48 batteryConfigured: true
[cache ] DEBUG 2021/10/25 18:27:48 prioritySoC: 0
[lp-1  ] INFO 2021/10/25 18:27:48   charger:   power ✓ energy ✗ currents ✓ timer ✗
[lp-1  ] INFO 2021/10/25 18:27:48   meters:    charge ✓
[lp-1  ] INFO 2021/10/25 18:27:48     charge:  power ✓ energy ✗ currents ✓
[lp-1  ] INFO 2021/10/25 18:27:48   vehicles:  ✗
[site  ] DEBUG 2021/10/25 18:27:48 ----
[cache ] DEBUG 2021/10/25 18:27:48 chargeConfigured: true
[script] DEBUG 2021/10/25 18:27:48 /bin/bash -c echo 1500: 1500
[site  ] DEBUG 2021/10/25 18:27:48 pv power: 1500W
[cache ] DEBUG 2021/10/25 18:27:48 pvPower: 1500
[script] DEBUG 2021/10/25 18:27:48 /bin/bash -c echo 300: 300
[site  ] DEBUG 2021/10/25 18:27:48 grid power: 300W
[cache ] DEBUG 2021/10/25 18:27:48 gridPower: 300
[script] DEBUG 2021/10/25 18:27:48 /bin/bash -c echo -700: -700
[site  ] DEBUG 2021/10/25 18:27:48 battery power: -700W
[cache ] DEBUG 2021/10/25 18:27:48 batteryPower: -700
[script] ERROR 2021/10/25 18:27:48 /bin/bash -c 88: /bin/bash: line 1: 88: command not found
[site  ] ERROR 2021/10/25 18:27:48 updating battery soc 0: exit status 127
[site  ] DEBUG 2021/10/25 18:27:48 site power: -400W
[cache ] DEBUG 2021/10/25 18:27:48 batterySoC: 0
[cache ] DEBUG 2021/10/25 18:27:48 mode: off
[lp-1  ] ERROR 2021/10/25 18:27:48 charge meter: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[lp-1  ] ERROR 2021/10/25 18:27:48 charge meter: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:48 chargeCurrent: 0
[lp-1  ] ERROR 2021/10/25 18:27:48 charge rater: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:48 chargedEnergy: 0
[cache ] DEBUG 2021/10/25 18:27:48 chargeDuration: 0s
[lp-1  ] ERROR 2021/10/25 18:27:48 charger: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:48 homePower: 1100
[site  ] DEBUG 2021/10/25 18:27:58 ----
[script] DEBUG 2021/10/25 18:27:58 /bin/bash -c echo 1500: 1500
[site  ] DEBUG 2021/10/25 18:27:58 pv power: 1500W
[cache ] DEBUG 2021/10/25 18:27:58 pvPower: 1500
[script] DEBUG 2021/10/25 18:27:58 /bin/bash -c echo 300: 300
[site  ] DEBUG 2021/10/25 18:27:58 grid power: 300W
[cache ] DEBUG 2021/10/25 18:27:58 gridPower: 300
[script] DEBUG 2021/10/25 18:27:58 /bin/bash -c echo -700: -700
[site  ] DEBUG 2021/10/25 18:27:58 battery power: -700W
[cache ] DEBUG 2021/10/25 18:27:58 batteryPower: -700
[script] ERROR 2021/10/25 18:27:58 /bin/bash -c 88: /bin/bash: line 1: 88: command not found
[site  ] ERROR 2021/10/25 18:27:58 updating battery soc 0: exit status 127
[site  ] DEBUG 2021/10/25 18:27:58 site power: -400W
[cache ] DEBUG 2021/10/25 18:27:58 batterySoC: 0
[cache ] DEBUG 2021/10/25 18:27:58 mode: off
[lp-1  ] ERROR 2021/10/25 18:27:58 charge meter: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[lp-1  ] ERROR 2021/10/25 18:27:58 charge meter: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:58 chargeCurrent: 0
[lp-1  ] ERROR 2021/10/25 18:27:58 charge rater: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:58 chargedEnergy: 0
[cache ] DEBUG 2021/10/25 18:27:58 chargeDuration: 0s
[lp-1  ] ERROR 2021/10/25 18:27:58 charger: Get "http://127.0.0.1/status": dial tcp 127.0.0.1:80: connect: connection refused
[cache ] DEBUG 2021/10/25 18:27:58 homePower: 1100            
naltatis commented 2 years ago

Is this based on a realistic scenario? The battery is usually not charged with grid power.

@andig which backend change do you mean?

naltatis commented 2 years ago

@andig Ok, found the change (and the issue) https://github.com/evcc-io/evcc/pull/1718

I'll make a fix.

andig commented 2 years ago

Was hab ich übersehen?

naltatis commented 2 years ago

site.gridPower und site.batteryPower waren vorher mit min(0, _) versehen.

https://github.com/evcc-io/evcc/pull/1718/files#diff-7aa5baae0bd3243f85bfc6db64612f7450eb0170fa310ca2c93dc3968fc02e02R393

Aber die Kombination von Akku-Laden bei gleichzeitigem Netzbezug bringt auch die Eigenverbrauch/Netzbezugsberechnung in der UI durcheinander.

naltatis commented 2 years ago

Schaut euch mal https://github.com/evcc-io/evcc/pull/1788 an. Damit sollte dieser Fall nun korrekt dargestellt werden. Danke @msome für die Config. Das hat das Nachstellen deutlich einfacher gemacht.

msome commented 2 years ago

Is this based on a realistic scenario? The battery is usually not charged with grid power.

It is real life, yes. The senec system reacts quite slow on changing loads, means e.g. here when charging from PV an a new load is added, it takes some seconds to change from charging to supplying. In such transitions I could see that scenario. Not sure if other systems are faster, that's the only one I have.

Thanks for the quick fix.
I'll try it today and comment again with my experience tonight.

Hoffe die Sonne scheint heute :-)

premultiply commented 2 years ago

Senec… 🤦🏻‍♂️

msome commented 2 years ago

I can confirm with the changes from #1788 the graph works fine now for this scenario, here two screenshots from today using this corrected version.

image image

Thank you very much @naltatis .

DerAndereAndi commented 2 years ago
Screenshot 2021-10-28 at 17 02 54

The "fix" is wrong, see this image. "PV" is correct, "export" as well, "Verbrauch" not. The code is missing substracting export: homePower := gridImport + site.pvPower + site.batteryPower is wrong.

andig commented 2 years ago

@naltatis wenn wir Export jetzt abziehen sind wir wieder bei der Formel von vorher- einfach gridPower addieren. Wenn die aber richtig war dann muss der fehlende Teil der Fixes im Frontend liegen?

andig commented 2 years ago

Ich hab die letzte Änderung in https://github.com/evcc-io/evcc/commit/7de872926fc95ff3df4461da6cc772626e11175f teilweise zurück gedreht.

andig commented 2 years ago

Gibts jetzt noch Probleme mit 0.68? Welche?

tobiforster commented 2 years ago

sorry habs nicht mitbekommen, dass ein Update verfügbar war. Verbrauch in V0.68 sieht aktuell gut aus - würde morgen bei Sonnenlicht nochmal ein Auge drauf werfen und mich melden :)

Danke für deine Mühen!

tobiforster commented 2 years ago

Getestet mit V0.68: Erzeugung und Verbrauch sehen wieder sehr gut aus!

Das ursprüngliche Problem mit dem overflow zur rechten Seite konnte ich bis dato noch nie nachstellen - das müsste jemand anderes testen.

Danke!

msome commented 2 years ago

Ursprüngliches Problem ist mit V0.68 auch noch gelöst: image image

Danke!

mtthsrtl commented 2 years ago

Same here

140284863-b61558df-a018-4b62-a8b6-57c29e7a761d

Version 0.68 (hatte vorher keine ältere Version / habe mit 0.68 gestartet)

Hausverbrauch wird zu wenig angezeigt / sollte sein Erzeugung + Netzbezug

tobiforster commented 2 years ago

Hat sich an euren Configs was geändert? Ich kann mit der V 0.68 keinen Fehler mehr feststellen

image

mtthsrtl commented 2 years ago

Ich würde hier mal meine config bereitstellen: ` meters:

charger definitions

chargers:

andig commented 2 years ago

Hausverbrauch wird zu wenig angezeigt / sollte sein Erzeugung + Netzbezug

@matthiasertl hast Du ein Logfile in dem wir mal die passenden Basiswerte sehen und uns einen Reim drauf machen können? Die tauchen unter cache im Log auf.

mtthsrtl commented 2 years ago

[main  ] INFO 2021/11/05 14:17:54 evcc 0.68 (4497a0a)
[main  ] INFO 2021/11/05 14:17:54 using config file /etc/evcc.yaml
[main  ] INFO 2021/11/05 14:17:54 listening at 0.0.0.0:7070
[cache ] DEBUG 2021/11/05 14:17:54 title: Wallbox Heidelberg Energy Control
[cache ] DEBUG 2021/11/05 14:17:54 minCurrent: 6
[cache ] DEBUG 2021/11/05 14:17:54 maxCurrent: 16
[cache ] DEBUG 2021/11/05 14:17:54 phases: 3
[cache ] DEBUG 2021/11/05 14:17:54 activePhases: 3
[cache ] DEBUG 2021/11/05 14:17:54 hasVehicle: false
[cache ] DEBUG 2021/11/05 14:17:54 mode: pv
[cache ] DEBUG 2021/11/05 14:17:54 targetSoC: 100
[cache ] DEBUG 2021/11/05 14:17:54 minSoC: 0
[tplink] TRACE 2021/11/05 14:17:54 recv: {"system":{"get_sysinfo":{"sw_ver":"1.0.5 Build 200917 Rel.095551","hw_ver":"4.0","model":"HS110(EU)","deviceId":"8006712418915161973A8396F3AA13001CC590AF","oemId":"BC7DF59F436483CD3D8396111011B83E","hwId":"06D9793BF7C4C3E37A386CB6C5D4A929","rssi":-45,"longitude_i":121773,"latitude_i":496548,"alias":"PV1","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM:ENE","mac":"B0:95:75:15:63:22","updating":0,"led_off":0,"relay_state":0,"on_time":0,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","next_action":{"type":-1},"err_code":0}}}
[cache ] DEBUG 2021/11/05 14:17:54 title: eBikes / Pedelecs
[cache ] DEBUG 2021/11/05 14:17:54 minCurrent: 6
[cache ] DEBUG 2021/11/05 14:17:54 maxCurrent: 16
[cache ] DEBUG 2021/11/05 14:17:54 phases: 3
[cache ] DEBUG 2021/11/05 14:17:54 activePhases: 3
[cache ] DEBUG 2021/11/05 14:17:54 hasVehicle: false
[cache ] DEBUG 2021/11/05 14:17:54 mode: pv
[cache ] DEBUG 2021/11/05 14:17:54 targetSoC: 100
[cache ] DEBUG 2021/11/05 14:17:54 minSoC: 0
[tplink] TRACE 2021/11/05 14:17:54 recv: {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"98:DA:C4:6A:6C:50","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"PV2","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-53,"led_off":0,"longitude_i":121773,"latitude_i":496548,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006533D11FB004B116D63F88E8F37EF1BA8D85E","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
[cache ] DEBUG 2021/11/05 14:17:54 title: Sonstiges
[cache ] DEBUG 2021/11/05 14:17:54 minCurrent: 6
[cache ] DEBUG 2021/11/05 14:17:54 maxCurrent: 16
[cache ] DEBUG 2021/11/05 14:17:54 phases: 3
[cache ] DEBUG 2021/11/05 14:17:54 activePhases: 3
[cache ] DEBUG 2021/11/05 14:17:54 hasVehicle: false
[cache ] DEBUG 2021/11/05 14:17:54 mode: pv
[cache ] DEBUG 2021/11/05 14:17:54 targetSoC: 100
[cache ] DEBUG 2021/11/05 14:17:54 minSoC: 0
[tplink] TRACE 2021/11/05 14:17:54 recv: {"system":{"get_sysinfo":{"err_code":0,"sw_ver":"1.2.6 Build 200727 Rel.120821","hw_ver":"1.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"70:4F:57:51:C8:1D","deviceId":"8006A176C0C6004945E8CE263DC9F0A0190C0FA1","hwId":"45E29DA8382494D2E82688B52A0B2EB5","fwId":"00000000000000000000000000000000","oemId":"3D341ECE302C0642C99E31CE2430544B","alias":"PV3","dev_name":"Wi-Fi Smart Plug With Energy Monitoring","icon_hash":"","relay_state":0,"on_time":0,"active_mode":"schedule","feature":"TIM:ENE","updating":0,"rssi":-53,"led_off":0,"latitude":49.654811,"longitude":12.177310}}}
[site  ] INFO 2021/11/05 14:17:54 site config:
[site  ] INFO 2021/11/05 14:17:54   meters:    grid ✓ pv ✓ battery ✓
[site  ] INFO 2021/11/05 14:17:54     grid:    power ✓ energy ✗ currents ✗
[site  ] INFO 2021/11/05 14:17:54     pv 0:    power ✓ energy ✗ currents ✗
[cache ] DEBUG 2021/11/05 14:17:54 siteTitle: E3DC S10 Hauskraftwerk
[cache ] DEBUG 2021/11/05 14:17:54 gridConfigured: true
[cache ] DEBUG 2021/11/05 14:17:54 pvConfigured: true
[cache ] DEBUG 2021/11/05 14:17:54 batteryConfigured: true
[site  ] INFO 2021/11/05 14:17:54     battery 0: power ✓ energy ✗ currents ✗ soc ✓
[lp-1  ] INFO 2021/11/05 14:17:54 loadpoint 1:
[lp-1  ] INFO 2021/11/05 14:17:54   mode:      pv
[lp-1  ] INFO 2021/11/05 14:17:54   charger:   power ✓ energy ✗ currents ✗ timer ✗
[lp-1  ] INFO 2021/11/05 14:17:54   meters:    charge ✓
[lp-1  ] INFO 2021/11/05 14:17:54     charge:  power ✓ energy ✗ currents ✗
[cache ] DEBUG 2021/11/05 14:17:54 prioritySoC: 0
[lp-1  ] INFO 2021/11/05 14:17:54   vehicles:  ✗
[lp-2  ] INFO 2021/11/05 14:17:54 loadpoint 2:
[lp-2  ] INFO 2021/11/05 14:17:54   mode:      pv
[lp-2  ] INFO 2021/11/05 14:17:54   charger:   power ✓ energy ✗ currents ✗ timer ✗
[lp-2  ] INFO 2021/11/05 14:17:54   meters:    charge ✓
[lp-2  ] INFO 2021/11/05 14:17:54     charge:  power ✓ energy ✗ currents ✗
[lp-2  ] INFO 2021/11/05 14:17:54   vehicles:  ✗
[lp-3  ] INFO 2021/11/05 14:17:54 loadpoint 3:
[cache ] DEBUG 2021/11/05 14:17:54 chargeConfigured: true
[cache ] DEBUG 2021/11/05 14:17:54 chargeConfigured: true
[lp-3  ] INFO 2021/11/05 14:17:54   mode:      pv
[lp-3  ] INFO 2021/11/05 14:17:54   charger:   power ✓ energy ✗ currents ✗ timer ✗
[lp-3  ] INFO 2021/11/05 14:17:54   meters:    charge ✓
[lp-3  ] INFO 2021/11/05 14:17:54     charge:  power ✓ energy ✗ currents ✗
[lp-3  ] INFO 2021/11/05 14:17:54   vehicles:  ✗
[site  ] DEBUG 2021/11/05 14:17:54 ----
[cache ] DEBUG 2021/11/05 14:17:54 chargeConfigured: true
[modbus] TRACE 2021/11/05 14:17:54 modbus: send 00 01 00 00 00 06 01 03 9c 83 00 02
[modbus] TRACE 2021/11/05 14:17:54 modbus: recv 00 01 00 00 00 07 01 03 04 02 4f 00 00
[site  ] DEBUG 2021/11/05 14:17:54 pv power: -591W
[modbus] TRACE 2021/11/05 14:17:54 modbus: send 00 02 00 00 00 06 01 03 9c 89 00 02
[cache ] DEBUG 2021/11/05 14:17:54 pvPower: -591
[modbus] TRACE 2021/11/05 14:17:54 modbus: recv 00 02 00 00 00 07 01 03 04 02 bc 00 00
[site  ] DEBUG 2021/11/05 14:17:54 grid power: 700W
[modbus] TRACE 2021/11/05 14:17:54 modbus: send 00 03 00 00 00 06 01 03 9c 85 00 02
[cache ] DEBUG 2021/11/05 14:17:54 gridPower: 700
[modbus] TRACE 2021/11/05 14:17:54 modbus: recv 00 03 00 00 00 07 01 03 04 00 00 00 00
[site  ] DEBUG 2021/11/05 14:17:54 battery power: 0W
[cache ] DEBUG 2021/11/05 14:17:54 batteryPower: 0
[modbus] TRACE 2021/11/05 14:17:54 modbus: send 00 04 00 00 00 06 01 03 9c 92 00 01
[modbus] TRACE 2021/11/05 14:17:54 modbus: recv 00 04 00 00 00 05 01 03 02 00 01
[site  ] DEBUG 2021/11/05 14:17:54 battery soc 0: 1%
[site  ] DEBUG 2021/11/05 14:17:54 site power: 700W
[cache ] DEBUG 2021/11/05 14:17:54 batterySoC: 1
[cache ] DEBUG 2021/11/05 14:17:54 mode: pv
[tplink] TRACE 2021/11/05 14:17:54 recv: {"emeter":{"get_realtime":{"voltage_mv":232469,"current_ma":19,"power_mw":0,"total_wh":0,"err_code":0}}}
[lp-1  ] DEBUG 2021/11/05 14:17:54 charge power: 0W
[cache ] DEBUG 2021/11/05 14:17:54 chargePower: 0
[cache ] DEBUG 2021/11/05 14:17:54 chargeCurrent: 0
[tplink] TRACE 2021/11/05 14:17:54 recv: {"emeter":{"get_daystat":{"day_list":[{"year":2021,"month":11,"day":4,"energy_wh":81},{"year":2021,"month":11,"day":5,"energy_wh":0}],"err_code":0}}}
[cache ] DEBUG 2021/11/05 14:17:54 chargedEnergy: 0
[cache ] DEBUG 2021/11/05 14:17:54 chargeDuration: 0s
[tplink] TRACE 2021/11/05 14:17:54 recv: {"emeter":{"get_realtime":{"voltage_mv":232469,"current_ma":19,"power_mw":0,"total_wh":0,"err_code":0}}}
[lp-1  ] DEBUG 2021/11/05 14:17:54 charger status: B
[cache ] DEBUG 2021/11/05 14:17:54 connectedDuration: 0s
[cache ] DEBUG 2021/11/05 14:17:54 chargeCurrent: 0
[cache ] DEBUG 2021/11/05 14:17:54 connected: true
[cache ] DEBUG 2021/11/05 14:17:54 charging: false
[cache ] DEBUG 2021/11/05 14:17:54 enabled: false

``
mtthsrtl commented 2 years ago

hier die log und etwas später die Bilder (aber bei nicht viel geänderten Wetter und Verbrauchsbedingungen) 2021-11-05 14_30_07-evcc _ E3DC S10 Hauskraftwerk 2021-11-05 14_30_17-Portal _ 491922003876

andig commented 2 years ago

Der interessante Wert "homePower" fehlt im Log, ebenso das Bild von evcc. Ich kann da keinen Fehler erkennen. Zur Analyse brauchen wir richtig/falsch zum gleichen Zeitpunkt, nach Möglichkeit mit Details des Logfiles.

mtthsrtl commented 2 years ago

2021-11-05 16_05_00-evcc _ E3DC S10 Hauskraftwerk Ich habe den LogLevel auf Trace gestellt ...

passend dazu zum selben Zeitpunkt der Log:

[site  ] DEBUG 2021/11/05 16:04:55 ----
[modbus] TRACE 2021/11/05 16:04:55 modbus: send 00 15 00 00 00 06 01 03 9c 83 00 02
[modbus] TRACE 2021/11/05 16:04:55 modbus: recv 00 15 00 00 00 07 01 03 04 00 92 00 00
[site  ] DEBUG 2021/11/05 16:04:55 pv power: -146W
[modbus] TRACE 2021/11/05 16:04:55 modbus: send 00 16 00 00 00 06 01 03 9c 89 00 02
[cache ] DEBUG 2021/11/05 16:04:55 pvPower: -146
[modbus] TRACE 2021/11/05 16:04:55 modbus: recv 00 16 00 00 00 07 01 03 04 04 fa 00 00
[site  ] DEBUG 2021/11/05 16:04:55 grid power: 1274W
[modbus] TRACE 2021/11/05 16:04:55 modbus: send 00 17 00 00 00 06 01 03 9c 85 00 02
[cache ] DEBUG 2021/11/05 16:04:55 gridPower: 1274
[modbus] TRACE 2021/11/05 16:04:55 modbus: recv 00 17 00 00 00 07 01 03 04 00 00 00 00
[site  ] DEBUG 2021/11/05 16:04:55 battery power: 0W
[modbus] TRACE 2021/11/05 16:04:55 modbus: send 00 18 00 00 00 06 01 03 9c 92 00 01
[cache ] DEBUG 2021/11/05 16:04:55 batteryPower: 0
[modbus] TRACE 2021/11/05 16:04:55 modbus: recv 00 18 00 00 00 05 01 03 02 00 01
[site  ] DEBUG 2021/11/05 16:04:55 battery soc 0: 1%
[site  ] DEBUG 2021/11/05 16:04:55 site power: 1274W
[cache ] DEBUG 2021/11/05 16:04:55 batterySoC: 1
[cache ] DEBUG 2021/11/05 16:04:55 mode: pv
[tplink] TRACE 2021/11/05 16:04:55 recv: {"emeter":{"get_realtime":{"current":0.013540,"voltage":231.832834,"power":0,"total":0.001000,"err_code":0}}}
[lp-3  ] DEBUG 2021/11/05 16:04:55 charge power: 0W
[cache ] DEBUG 2021/11/05 16:04:55 chargePower: 0
[cache ] DEBUG 2021/11/05 16:04:55 chargeCurrent: 0
[tplink] TRACE 2021/11/05 16:04:55 recv: {"emeter":{"get_daystat":{"day_list":[{"year":2021,"month":11,"day":1,"energy":0},{"year":2021,"month":11,"day":2,"energy":0},{"year":2021,"month":11,"day":3,"energy":0},{"year":2021,"month":11,"day":4,"energy":0.081000},{"year":2021,"month":11,"day":5,"energy":0}],"err_code":0}}}
[cache ] DEBUG 2021/11/05 16:04:55 chargedEnergy: 0
[cache ] DEBUG 2021/11/05 16:04:55 chargeDuration: 0s
[tplink] TRACE 2021/11/05 16:04:55 recv: {"emeter":{"get_realtime":{"current":0.013540,"voltage":231.832834,"power":0,"total":0.001000,"err_code":0}}}
[lp-3  ] DEBUG 2021/11/05 16:04:55 charger status: B
[cache ] DEBUG 2021/11/05 16:04:55 connected: true
[cache ] DEBUG 2021/11/05 16:04:55 charging: false
[cache ] DEBUG 2021/11/05 16:04:55 enabled: false
[tplink] TRACE 2021/11/05 16:04:55 recv: {"system":{"get_sysinfo":{"err_code":0,"sw_ver":"1.2.6 Build 200727 Rel.120821","hw_ver":"1.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"70:4F:57:51:C8:1D","deviceId":"8006A176C0C6004945E8CE263DC9F0A0190C0FA1","hwId":"45E29DA8382494D2E82688B52A0B2EB5","fwId":"00000000000000000000000000000000","oemId":"3D341ECE302C0642C99E31CE2430544B","alias":"PV3","dev_name":"Wi-Fi Smart Plug With Energy Monitoring","icon_hash":"","relay_state":0,"on_time":0,"active_mode":"schedule","feature":"TIM:ENE","updating":0,"rssi":-55,"led_off":0,"latitude":49.654811,"longitude":12.177310}}}
[lp-3  ] WARN 2021/11/05 16:04:55 target charging: not possible
[lp-3  ] DEBUG 2021/11/05 16:04:55 max charge current: 0A = 0A + -1.85A (1274W @ 3p)
[lp-3  ] DEBUG 2021/11/05 16:04:55 reset pv enable timer: 1m0s
[lp-3  ] DEBUG 2021/11/05 16:04:55 pv enable timer: keep disabled
[lp-3  ] DEBUG 2021/11/05 16:04:55 pv max charge current: 0A
[tplink] TRACE 2021/11/05 16:04:55 recv: {"emeter":{"get_realtime":{"current":0.013540,"voltage":231.832834,"power":0,"total":0.001000,"err_code":0}}}
[lp-3  ] DEBUG 2021/11/05 16:04:55 charge power: 0W
[cache ] DEBUG 2021/11/05 16:04:55 homePower: 1128
[cache ] DEBUG 2021/11/05 16:04:55 chargePower: 0
[modbus] TRACE 2021/11/05 16:05:00 modbus: closing connection due to idle timeout: 5.000176391s

...

der Fehler im oberen Post war, dass ich 0W Hausverbrauch habe ? ... wieso sollte das System sonst Strom aus dem Netz beziehen, zudem steht im Balken 200W obwohl aber über 700W erzeugt werden ...

jetzt das selbe: es kommen 146 Watt vom Wechselrichter und ich beziehe 1274 Watt aus dem Netz, bei einem Hausverbrauch von (146+1274=) 1420 Watt (stimmt mit dem was ich am S10 ablese überein ! EVCC sagt aber ich habe "nur" einen Hausverbrauch von 1128 Watt ...

andig commented 2 years ago

Ahhhhhhh, mir schwant was. Das Log hilft, danke!

andig commented 2 years ago

@mtthsrtl bzgl. Deines Kommentars in https://github.com/evcc-io/evcc/discussions/1833#discussioncomment-1598474: mir erscheint sehrwohl, als würdest Du hier Support erhalten, also bitte spar Dir solche Kommentare. Danke.

andig commented 2 years ago

@mtthsrtl Deine PV Konfiguration ist falsch- es sei denn Dein WR hätte 150W Standby Verbrauch. Siehe README.

andig commented 2 years ago

Ich hab dafür noch eine Warnung eingebaut: https://github.com/evcc-io/evcc/commit/b2db5ab5812eb71c0e48bbc1a74033ad75a75175. Für's erste können wir hier wohl wieder zu machen. Danke für die Unterstützung bei der Fehlersuche.