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

Reporting negative values

Open Maxcodesthings opened this issue 2 years ago • 2 comments

I am seeing negative values being reported. I think some data points simply need to be absolute value and it would be correct

chrome_OlqJNvkLPH

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 chrome_OhzM71UiZP

Maxcodesthings avatar May 16 '23 06:05 Maxcodesthings

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.

magico13 avatar May 16 '23 13:05 magico13

Seeing this same thing. Unfortunate that the API is unreliable, but I appreciate the explanation!

dylanh117 avatar Jun 23 '23 20:06 dylanh117