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

ENERGY per String #57

Closed
MyGitIT opened this issue Apr 3, 2024 · 9 comments
Closed

ENERGY per String #57

MyGitIT opened this issue Apr 3, 2024 · 9 comments
Labels
bug Something isn't working requirement Requirement

Comments

@MyGitIT
Copy link

MyGitIT commented Apr 3, 2024

Hi,

short question, is it possible to select the e3dc/pvi/energy/string_x (today) instead off e3dc/pvi/energy_all/string_x (all time)?

This would be great!

Thx

@pvtom
Copy link
Owner

pvtom commented Apr 6, 2024

Hi,
the S10 device only provides the total energy values via the interface. Daily values can be calculated by memorizing the values at the change of day. I like the idea and will implement it soon.
Best regards
Thomas

@pvtom pvtom added the requirement Requirement label Apr 6, 2024
@pvtom
Copy link
Owner

pvtom commented Apr 14, 2024

implemented with release v3.19.
New topic: e3dc/pvi/energy/string_x for the daily values.

@pvtom pvtom closed this as completed Apr 14, 2024
@MyGitIT
Copy link
Author

MyGitIT commented Apr 14, 2024

Hi Thomas,

vielen Dank, wird das Topic auch in INFLUX geschrieben?

@pvtom
Copy link
Owner

pvtom commented Apr 15, 2024

Hi Sven,
Deine Frage hat mich stutzig gemacht.
Das Topic soll natürlich auch in die InfluxDB geschrieben werden.
Nur leider passiert das nicht. Grrrh. Ein Problem mit der Reihenfolge: Einrichten des Topics, Setzen des InfluxDB-Flags... es sind auch noch andere Topics, die dynamisch angelegt werden, betroffen.
Das wird mit dem nächsten Release dann gefixt. Also Danke für Deine Nachfrage :-)
Gruß Thomas

@pvtom
Copy link
Owner

pvtom commented Apr 15, 2024

Reopen, da Topic nicht in die InfluxDB geschrieben wird.

@pvtom pvtom reopened this Apr 15, 2024
@pvtom pvtom added the bug Something isn't working label Apr 15, 2024
@pvtom
Copy link
Owner

pvtom commented Apr 20, 2024

Die Lösung steht jetzt mit v3.20 zur Verfügung.

@MyGitIT
Copy link
Author

MyGitIT commented Apr 20, 2024

Hi Thomas,

die Topics sind in der Datenbank, danke dafür. Aber kann es sein, dass die Werte nur auf Stundenbasis und nicht auf Tag aggregiert werden?

Gruß Sven

@pvtom
Copy link
Owner

pvtom commented Apr 20, 2024

Hallo Sven,
die Werte werden für den aktuellen Tag aggregiert. Dazu wird der Wert um Mitternacht als Startwert gespeichert und dann zur Berechnung des Tageswerts benutzt (aktueller Wert minus Startwert).
Das klappt natürlich nach Neustart des Programms erst richtig für den nächsten Tag. Evtl. kommen Dir die Werte gerade daher nicht richtig vor.
Mit RETAIN_FOR_SETUP=true in der .config wird der Startwert im MQTT als retained Topic gespeichert und nach dem Neustart eingelesen. So überlebt der Startwert einen Neustart von rscp2mqtt. Mit v3.20 hat sich allerdings das Format ein wenig geändert ggü. v3.19, von daher zieht ein vorhandener Startwert bei Wechsel auf v3.20 erstmal nicht. Auch das regelt die nächste Mitternacht.
Ich hoffe, das passt so?
Gruß Thomas

@MyGitIT
Copy link
Author

MyGitIT commented Apr 21, 2024

Hallo Thomas,

der neue Stringwert passt:

InfluxDB:
Bildschirmfoto vom 2024-04-21 20-30-59

E3DC-Portal:
Bildschirmfoto vom 2024-04-21 20-35-19

Perfekt, vielen, vielen Dank!

Gruß Sven

@MyGitIT MyGitIT closed this as completed Apr 21, 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 requirement Requirement
Projects
None yet
Development

No branches or pull requests

2 participants