ha-emporia-vue
ha-emporia-vue copied to clipboard
Reporting negative values
I am seeing negative values being reported. I think some data points simply need to be absolute value and it would be correct
When i look at data on teh sensor it dips twice just like the energy graph. Isnt this an issue? The sensor should always be increasing in value
The API sometimes returns old data but says it's the latest and when that happens you'll see those dips. They usually self-resolve when the next API call is made 15 minutes later but if that crosses into a new hour then the overall graph on the energy dashboard will under report for one hour and over report for the next.
I can't fix the instability of the API, which is frankly the source of many of the issues with this integration. These dips would be difficult to filter out because they could also happen if I over estimated the value when integrating the 1 minute data, so the request for the data from the API is treated as the source of truth. And if someone has solar then that graph can and should be non-monotonic throughout the day which makes a general solution more difficult.
Seeing this same thing. Unfortunate that the API is unreliable, but I appreciate the explanation!