meltaxa / solariot

Leverage your IoT enabled Solar PV Inverter to stream your solar energy usage data to a real time dashboard.
https://solariot.live
MIT License
210 stars 72 forks source link

Cumulative flag #47

Open shannondpasto opened 3 years ago

shannondpasto commented 3 years ago

Hi.

For some time now I've been seeing an issue where the energy generation (v1) on PV Output was alway 100Wh behind what the API was sending (and telemetry). There was also a period of time from when the first 100W of power generation was sent via the API to when it would register on PV Output. I reached out to PV Output forum and after some investigation it turns out the cumulative flag (c1=1) has been the cause of this. As you'll see in the last post by bankstownbloke the c1=1 flag should only be used when sending lifetime values. As I'm using a modified version of the SG5K-D modbus map for my SG3K-D I would assume that anyone who does the same will be in the same situation as myself, that is v1 is not lifetime, just daily. The only lifetime value I can see is total_power_yield which is not used in the API. Currently I have commented out c1 in the parameters section but I'm hoping you might be able to do something within the script. As I don't have a smart meter (I have one on order) this may change but I think you mentioned somewhere that you did have one so it may be worth looking into a bit more...I will when I have mine installed.

There's more info on the PV Output forum and I'm also happy to share any API data that I captured.

Cheers, Shannon

michael-robbins commented 3 years ago

Nice! I'll stare at mine on the weekend when I get a chance :)