ha-emporia-vue icon indicating copy to clipboard operation
ha-emporia-vue copied to clipboard

30 kWh of solar production reported from midnight to 1 am in HA, Vue data doesn't agree

Open lhersman opened this issue 2 years ago • 12 comments

Hey all! Been using this for a few days and its been working great save this morning. Its showing Solar sensor 1 reported 30.02 kWh generated from midnight to 1 am this morning which is obviously impossible. The strangest thing is that the Emporia Vue app itself does NOT show this at all, so Im not sure where the integration got this data from. Please let me know if you need any logs

Emporia Vue data showing no solar generation from midnight to 1 am: image

Home Assistant data using this integration: image

lhersman avatar Mar 29 '22 14:03 lhersman

Also, should I reset the HA data as it will always be off by 30 kWh now?

lhersman avatar Mar 29 '22 14:03 lhersman

One more screenshot from Vue showing Solar 1 sensor did not report 30.02 kWh image

lhersman avatar Mar 29 '22 14:03 lhersman

Any thoughts on this one @magico13?

lhersman avatar Apr 03 '22 15:04 lhersman

It's the same problem as in #115 due to the integration wrongly receiving the data for the day before, which specifically seems to happen around 1 AM. I'm running some tests on my own system at the moment to see if swapping the state class is enough to fix it but I've got one or two other possible fixes in mind if that's not enough. For now there's not much you can do.

The historical Emporia data won't show it since they use a different method to get the historical data but the integration uses the method that the app uses when you're on the home screen and only shows "right now" data. If you had opened up the app at the same time as the integration got the bad data you'd probably see the same bad data on the app but the graph view would probably be fine. Unfortunately for the integration to use the graph view's method to get data would require a separate API call for every channel, the method used right now requires only one API call to get data on everything.

magico13 avatar Apr 03 '22 16:04 magico13

Gotcha, thanks for the reply!

lhersman avatar Apr 03 '22 16:04 lhersman

@magico13 FYI it happened again but this time mid day instead of midnight. Let me know if you want the details. Only reason I bothered to ping you is this is the first time I've seen where it didn't happen at midnight. Thanks again for everything!

lhersman avatar Apr 08 '22 02:04 lhersman

Hello, same PB here and already rise: https://github.com/magico13/ha-emporia-vue/issues/99

repeat this night:

image

image

If i can help.

Flo2830 avatar Jun 28 '22 13:06 Flo2830

Same here: https://github.com/magico13/ha-emporia-vue/issues/114#issuecomment-1168755558

If i can help

Flo2830 avatar Jun 28 '22 13:06 Flo2830

What's new?

Issue already present:

image

Flo2830 avatar Aug 22 '22 12:08 Flo2830

Hi guys, I’ve read on the HA forum that when an entity goes offline, if instead of reporting “unavailable” it reports 0, then the next reading will be summed to the previous one basically doubling the reading on the energy dashboard. Could it be the case here?

serniko97 avatar Sep 22 '22 16:09 serniko97

That is a result of using total_increasing, when the value drops it starts a new cycle, then comes back up and it sees that as a bunch of new energy. The pre-release swapped off total_increasing for that reason and manually defines the start of a new cycle, so the random jumps and drops in the data balance out and this issue is mostly gone.

The pre-release is almost release worthy, there's one minor bug I know I want to fix but I haven't had an opportunity to work on it recently.

magico13 avatar Sep 22 '22 16:09 magico13

Hello, i'm trying your pre-release and read your koments. Just for information, Midnight reset seems working but: image

But no impact in this graph image

Thanks again for your work !

Flo2830 avatar Sep 23 '22 12:09 Flo2830