evcc-io / evcc

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

Double Value since 0.124.0 #12127

Closed michaestraub closed 8 months ago

michaestraub commented 8 months ago

Describe the bug

Hi, I found out that Solar input is shown double as it is real. Grid seams to be half od real value. I get back on 0.123.9 and everything is shown fine. Version 0.124.0 and 0.124.1, same I use Fenecon 10 Home to fetch the data of Grid, Solar, Battery.

THX Michael

Steps to reproduce

Its visibal, depending if you have a 123 or 124 log 0.124.0 log.txt evcc meter --log trace log_0_123_9.txt evcc meter --log trace log_0_124_1.txt log_123_9.txt

https://github.com/evcc-io/evcc/discussions/12089

Configuration details

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

#uri: 0.0.0.0:7070

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

  feedin:
    type: fixed
    price:  # [currency]/kWh

log: trace
levels:
  cache: error

# unique installation id
plant: 

interval: 10s # control cycle interval

sponsortoken: 

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

meters:
- name: grid1
  type: template
  template: openems 
  usage: grid  
  host: 10.0.0.30  
  password: user  

- name: pv2
  type: template
  template: openems 
  usage: pv  
  host: 10.0.0.30  
  password: user  

- name: battery3
  type: template
  template: openems 
  usage: battery  
  host: 10.0.0.30  
  password: user  

chargers:
- type: template
  template: easee 
  user: 
  password: 
  charger: 
  timeout: 10s
  name: wallbox4
  authorize: true
- type: template
  template: easee 
  user: 
  password: 
  charger: 
  timeout: 10s
  name: wallbox5
  authorize: true

loadpoints:
- title: Aussen
  charger: wallbox4
  vehicle: smart
  mode: pv #off now minpv pv
  phases: 1
  mincurrent: 6
  maxcurrent: 16

- title: Garage
  charger: wallbox5
# vehicle:
  mode: pv
  phases: 0
# enable:
# threshold: 0
# delay: 1m
  mincurrent: 6
  maxcurrent: 16

site:
  title: HGW4a
  meters:
    grid: grid1
    pv:
    - pv2
    battery:
    - battery3
  #bufferSoc: 80
  #prioritySoc: 95

vehicles:
  - name: smart
    type: template
    template: smart
    title: SmartEQ
    user: 
    password: 
#  - name: mercedes
#    type: mercedes
#    title: C300e 
#    capacity: 
#    clientId: 
#    clientSecret: a
#    vin: 
#    cache: 2m

Log details

plz have a look at attachment

What type of operating system are you running?

Linux

Version

0.123.9 and 0.124.1

andig commented 8 months ago

@premultiply related to https://github.com/evcc-io/evcc/pull/11479?

andig commented 8 months ago

Please show

evcc settings get Meter

I assume this might be another occurrence of https://github.com/evcc-io/evcc/issues/12130

premultiply commented 8 months ago

related to #11479?

Nein, das ist ja nur für Fehler mit 0 zu überschreiben.

Denke auch dass es an einer Dopplung (evcc.yaml+DB) liegt.

Ich denke wir brauchen irgendwie einen erweiterten Konfig-Dump der auch die DB-seitige Konfigurationen mit einschließt.

michaestraub commented 8 months ago

Wenn ich unterstützen kann, gerne

andig commented 8 months ago

Steht oben…

andig commented 8 months ago

Gerne wieder auf machen wenn die Informationen vorliegen.

michaestraub commented 8 months ago

Um welche Infos geht es denn? Kann ich leider nicht herauslesen.

andig commented 8 months ago

Siehe https://github.com/evcc-io/evcc/issues/12127#issuecomment-1932322143

michaestraub commented 8 months ago

Sorry, bin kein Developer, Das Problem wir nun wieder wichtig, wenn die Sonne wieder scheint und dann das Überschuss laden nicht passt. Ich verstehe leider nicht ob das Problem behoben ist oder ob hier noch ein todo ist.

Danke für die Unterstützung, Gruß Michael

andig commented 8 months ago

Du musst bitte die jetzt 2x angefragten Informationen liefern. Ohne gibts hier keine weitere Bearbeitung.

michaestraub commented 8 months ago

hier das log[ getMeter.txt

michaestraub commented 8 months ago

Ist es das was du benötigst?

andig commented 8 months ago

Das sieht korrekt aus. Bitte nochmal

evcc --log trace,db:error meter

Welcher Meßwert davon ist falsch (und mit Vorversion korrekt)?

michaestraub commented 8 months ago

Meter_0_124_1.txt falsch Meter_0_123_9.txt Korekt

andig commented 8 months ago

falsch

Blöd.

michaestraub commented 8 months ago

Bitte was ist blöd?

andig commented 8 months ago

Dass das falsch ist. Ich weiss aber immer noch nicht, was:

Welcher Meßwert davon ist falsch (und mit Vorversion korrekt)?

Es wäre echt super, die Analysefragen vollständig zu beantworten- als Suchspiel ist das extrem mühsam...

michaestraub commented 8 months ago

Sorry, bin kein Entwickler oder so, ich sehe nur das Ergebnis, das ich hier doppelte Werte habe, deshalb habe ich diesen Incident aufgemacht.

michaestraub commented 8 months ago

https://github.com/evcc-io/evcc/discussions/12089

Hier findet man die entsprechenden Screenshots, hatte ich initial angehängt..

andig commented 8 months ago

Ich frag nochmal: welcher Wert im "falsch" Log ist falsch? Ich kann nicht hellsehen!

michaestraub commented 8 months ago

image Hilft das?

andig commented 8 months ago

Nein. Da es wieder nicht möglich war, die konkrete Frage zu beantworten gebe ich auf :(

michaestraub commented 8 months ago

Ok, ich sehe das schein nichts zu werden, dann ist das für einen Leihen scheinbar nicht dir richtige Anwendung! Ich habe das Problem seit der 124, dann bleibe ich eben auf 123 und hoffe daß irgendwann jemand das Problem hat, der es besser beschreiben kann. Ich verstehe nicht warum ein Entwickler nicht den eingekreisten Wert den Variablen im Log zuordnen kann, ich kann es leider nicht. Ich möchte auch niemanden zu nahe treten, aber manchmal liegt es vielleicht auch daran wie man eine Frage formuliert. Danke

michaestraub commented 8 months ago

Müsste vielleicht der sein? pv2

[http ] TRACE 2024/02/09 13:05:51 GET http://10.0.0.30/rest/channel/_sum/ProductionActivePower [http ] TRACE 2024/02/09 13:05:51 {"address":"_sum/ProductionActivePower","type":"INTEGER","accessMode":"RO","text":"Total production; always positive","unit":"W","value":430} Power: 430W

Wenn das die aktuelle Erzeugung ist?

michaestraub commented 8 months ago

Guten Morgen, sind nun alle Infos da die benötigt werden um mein Problem zu verstehen?

Danke Michael

michaestraub commented 8 months ago

Funktioniert wieder richtig in 0.124.2, danke