ha-emporia-vue
ha-emporia-vue copied to clipboard
30 kWh of solar production reported from midnight to 1 am in HA, Vue data doesn't agree
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:
Home Assistant data using this integration:
Also, should I reset the HA data as it will always be off by 30 kWh now?
One more screenshot from Vue showing Solar 1 sensor did not report 30.02 kWh
Any thoughts on this one @magico13?
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.
Gotcha, thanks for the reply!
@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!
Hello, same PB here and already rise: https://github.com/magico13/ha-emporia-vue/issues/99
repeat this night:
If i can help.
Same here: https://github.com/magico13/ha-emporia-vue/issues/114#issuecomment-1168755558
If i can help
What's new?
Issue already present:
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?
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.
Hello, i'm trying your pre-release and read your koments. Just for information, Midnight reset seems working but:
But no impact in this graph
Thanks again for your work !