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

Trying to get generated energy in KWH on an LV5048 #281

Open
multilectical opened this issue Dec 21, 2022 · 3 comments
Open

Trying to get generated energy in KWH on an LV5048 #281

multilectical opened this issue Dec 21, 2022 · 3 comments
Milestone

Comments

@multilectical
Copy link

Hi, I've got things running nicely here for my setup with an MPP LV5048 and thanks a ton for this btw, really appreciate the work that went into building it.

My one thing I've been trying to figure out is get is if I can get daily or periodic kwh from charging and/or discharging from the inverter? Grepping around the repo, I see it in other protocols, but not in PI41. Is there a way to do this here?

@jblance
Copy link
Owner

jblance commented Dec 22, 2022

Not according to the protocol documentation I have, you could try some of the other protocol commands and see if any respond (the docs never seem completely correct)
eg try -c QET or -c QEY2022 but I dont think these are supported on the LV5048
Alternative is to use a downstream solution (software like: influx/grafana or home assistant, or hardware like victron smartshunt) to collect this info

@multilectical
Copy link
Author

No luck with QET or QEY2022. Also tried QED20221220 (and variations) as well as some other commands I found looking around these tickets.

I do have grafana set up, but not sure how to do the calculation with constantly varying voltage and amperage. I'm thinking breaking it up into chunks by minute, and then average the volts and amps before multiplying those by time? I feel like doing calculations like this could get way off and am sure there is a better way. Maybe even a native thing built into grafana that someone out there knows about?

my best leads so far:
https://community.grafana.com/t/daily-power-consumption-from-watts/16196/
https://community.grafana.com/t/display-daily-consumption-in-kwh/38393/4
https://www.reddit.com/r/homelab/comments/65yn4p/calculating_power_consumption_costs_in_grafana/

@jblance
Copy link
Owner

jblance commented Jan 31, 2023

Maybe I can add a power calculated field to PI41, then grafana can aggregate (i think - I know home assistant can do this aggregation)

@jblance jblance modified the milestone: 0.17 release Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants