Replies: 1 comment 3 replies
-
Your graph is likely the problem--this particular data can't be properly processed by just calculating the rate of change at fixed time intervals, there needs to be special logic for the situation where it drops to zero. 18s delay between midnight on doesn't seem unreasonable to me. Since you just want the power, why not use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Home Assistant noob here. This project is pretty damned amazing, and actually what made me want to give Home Assistant a go. Kudos to everyone who has put so much time and effort into REing the Emporia Vue2!
I've searched high and low for an answer, and have seen the discussions here for the total_daily_energy not resetting, but that's not quite the problem I'm having. This is just driving me crazy. I'm sure it's something stupid that I'm overlooking.
Problem: Daily reset of total energy usage happens around 30-45 seconds after midnight, so when I try to set up a Statistics Graph card for hourly or daily energy consumption, there's a spike in usage at midnight, and I've already got energy used for the current day. Not sure if the problem is my templates, my ESPHome config, or my graph, but I'm certain it's user error. I've got 2 panels, so a Vue2 in each panel, and a template sensor to add the 2 values together to get the daily usage. I'm using the stock config with just a couple of tweaks for sensor naming.
Here's the platform config in ESPHome for one of my Vue2s. I have a similar one in my other panel:
And the sensor config that adds the 2 total_daily_energy values together:
And here's a screenshot of what the statistics graph looks like. Ignore the ridiculously high values on the left. I'm still trying to figure things out. The important piece is at midnight on November 24th, there's a huge spike in the graph, and I can't for the life of me figure out why.
And a screenshot showing when the total daily energy gets reset. The time scale is 12:00am-12:10 am. First screenshot is from one of the panels, and the second one is from the total_energy_consumed sensor that adds the 2 panels together together.
WTH am I missing? Is it an issue with my ESPHome config, my total_energy_consumed sensor config, or my Statistics Graph?
** Edit to say that I've verified my time source and that it's syncing properly **
Beta Was this translation helpful? Give feedback.
All reactions