I decided to make a statistics page after discovering my new plugs have energy monitoring.
Here's what I've set up:
• Gauge that shows how much power it is currently drawing at any given time.
• Gauge that shows how much power has been drawn that day.
• Graph that shows the power draw history of the 5 most recent days.
All this is pictured in my attachment.
What I'd like to set up
• Gauge that measures the day total of the last 7 days. I.e. if the total power draw in kWh for the last 7 days are .375, .375, .395, .390, .355, .395, and .425, the gague would read .387 1kWh.
What I've tried:
I discovered the statistics helper, but I didn't understand the options first time around. (The documentation that the ? took me to wasn't super helpful.) And on my first attempt at getting the change from 7 days ago till now, I was getting a negative number.
Images:
What I've set up (left) and what I want (right)
Solved
For anyone finding this thread in the future, I put the solution at the very end.