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

[BUG] Lifetime production not correct #163

Closed
2 of 6 tasks
Vincentb19 opened this issue Sep 29, 2024 · 9 comments · Fixed by #166
Closed
2 of 6 tasks

[BUG] Lifetime production not correct #163

Vincentb19 opened this issue Sep 29, 2024 · 9 comments · Fixed by #166

Comments

@Vincentb19
Copy link

Describe the bug
The Lifetime production is not the same as found in the enphase app or the enlighten manager. I don't have the CT's installed and they are also not configured. I checked the production.json and there it also is showing the wrong data?
afbeelding
afbeelding

What i do know is that my enphase is updated from version 2.someting.someting a few months ago by the enphase team itself. I don't remember what the reading was before that because i called them to update the gateway to install this integration. (Could not manually install this update)

Account type

  • Installer
  • DIY / DHZ
  • Home Owner (This integration is not (fully) functional with a home owner account!)

Envoy

  • Metered with CTs installed

  • Metered without CTs

  • Standard

  • FW version: D8.2.4264

  • Amount of micro inverters connected: 14

Home Assistant

  • Version: 2024.9.1

Additional context

Relevant snippet of Home Assistant error log. 
@Vincentb19 Vincentb19 changed the title [BUG] [BUG] Lifetime production not correct Sep 29, 2024
@vincentwolsink
Copy link
Owner

vincentwolsink commented Sep 30, 2024

This is unfortunately a known issue with Envoys. Local counters might reset in certain situations. Enphase keeps a separate database for readings in their cloud platform so these readings are correct. But since we only read locally from the Envoy, if the data is wrong there, nothing much we can do.

I might consider adding an option to correct the lifetime data via the integration configuration if you are interested.

@Vincentb19
Copy link
Author

That would be great! So when you configure the integration that you can give it a offset, or tell the integration what the starting values are? Something like that?

@catsmanac
Copy link
Contributor

FWIW, Envoy metered without installed/configured CT report lifetime production and watts correctly in /api/v1/production endpoint. In the core integration (homeowner accounts) we check if this is the case and use these values from there. Todays and last7days values are not correct either in there. You probably get values from other endpoints because of the installer privileges, but it might be useful as a fallback, or at least worthwhile checking.

@vincentwolsink
Copy link
Owner

Thanks @catsmanac. @Vincentb19 can you check if https://ENVOY_IP/api/v1/production reports the correct value?

@Vincentb19
Copy link
Author

Screenshot 2024-10-03 084105
This is what i see when using that endpoint with the installer login.
I am not able to login into the gateway with the homeowner account so i don't know what that is giving me as a value.

@catsmanac
Copy link
Contributor

:-( too bad.

@catsmanac
Copy link
Contributor

Checked again and and I was wrong in trying to use the /api/v1/production, should have said /production. Apologize for the confusion. @vincentwolsink is right in his remark that "Local counters might reset in certain situations". The values in /production inverters section are reportedly resetting to zero every now and then.

In HA, the energy dashboard can handle the resets, as well as utility meters I think. So you could use these to handle the resets. But getting the same numbers for lifetime as enphase website may need some template logic or what @vincentwolsink has in mind.

@vincentwolsink
Copy link
Owner

vincentwolsink commented Oct 3, 2024

@Vincentb19 Please try 0.5.0-beta1, correct the lifetime production value in the configuration options (the value you enter will be added to the Envoy value) and reload the integration.

P.S. Beware that this will cause a huge spike in your energy dashboard that you might want to correct after.

@Vincentb19
Copy link
Author

Installed the update yesterday, and it works great. The values increased when the sun was up today. So i am happy with this feature. Thanks for the fast update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants