-
Notifications
You must be signed in to change notification settings - Fork 72
last_reset occuring at 00:05 #348
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
Comments
Well you can't turn off the general reset because it's inherent to how the data works in the Emporia API: the daily sensor resets daily. The Energy Dashboard is built to handle this type of reset, the main way I've seen it act up is if the server's time zone is not set to the same time zone as the device in the Emporia app. Based on the logs it looks like you're in Eastern time but either your server is in the wrong time zone or you didn't set the device settings in the Emporia app to be Eastern time. Make them match and it should start behaving properly after a day or two. |
Thanks for the quick reply. They are both set to -5 EST. I originally hoped this was because I updated HA and rebooted. But it has continued to be an issue even without a reboot. |
Is there anywhere else that I can look to try and track down why I am getting this huge negative value after reset? |
I have the same issue and it occurs consistently in the 12:00 or 12:05 AM data point. It's definitely not a time zone issue. What I see is a data point soon after midnight that reflects the previous day's total usage, not the expected few watts accumulated since the reset. I'm correcting it every day in statistics. I'm considering trying to wrap a template sensor around it and forcing the value to zero at midnight and a couple of periods after. BTW, the integration is terrific. I'd be looking for an Emporia alternative without it. |
What I ended up doing was creating an automation to check if the sensor is above a threshold value — something high enough to match what a daily total would be — every few 5 minute increments past midnight. That way if it doesn’t have an issue I’m not just forcing the value to zero every morning. I do a lot overnight EV charging so this could throw that tracking off rather quickly. |
I've continued to investigate this problem as it is corrupting my energy dashboard every day. I developed a query against the statistics and short_term_statistics tables to be able to look at a longer period than I could see in the statistics editor in HA. These are what I found in the most recent 5 days. BTW, I have Vue's on 3 panels and am seeing the same thing on all 3. As you can see, it is consistently recording the previous day's total in the first bucket of the each new day. I've been trying to develop a filter to correct it but haven't had any luck so far. Here's my query in case anyone's interested. --long term statistics |
Installed the integration a couple of weeks back and found it working great for a few days. Then had the glitch that I believe is being reported in this thread. The daily sensor "resets" on the Emporia side around midnight, then jumps back to the value from the prior day, then resets again. It's happening intermittently; I can't find the pattern. First time it occurred, it happened to be the day of the month I had the Vue set to reset my monthly metering, so I thought there might have been a correlation. But then it happened again about 5 days later, so that was proven false. It seems to affect all sensors, not just the panel mains. And I have Vues on two panels; both are affected at the same time. Definitely on the Emporia side, but I haven't found a way to adjust for it on the Home Assistant side. I'll be following here for updates. EDIT: It would seem there is an association with using a "helper" as I do - as the daily values are effectively self-correcting from Emporia as they change, while the helper values do not. Unfortunately I need that helper to sum the values of two panels to get a total daily/hourly energy for my home. Has anyone found a reliable way to sum two panel mains in to a single total daily energy value which changes as the value changes through the course of the day? |
I read all the other issue posts talking about similar problems. Is there a work around for this, because it makes my energy overview almost unusable.
https://i.imgur.com/VEfAhTP.png
https://i.imgur.com/GntvEvu.png
The text was updated successfully, but these errors were encountered: