#HA statistics

1 messages · Page 1 of 1 (latest)

wintry solstice
#

Hey all, I'm trying to set up a statistics sensor, but I can't figure it out. What I want to do is collect my energy usage (which I have a daily sensor for) over a month and over a year.

What I can't figure out is the UI for creating statistics sensors. I think the sum statistic would be the right one, but I can't make sense of all the other parameters it's asking like sample size and percentile. The fact that the documentation is in english and the UI is not doesn't help either.

Can someone please either explain it to me or point me to some documentation that goes into greater detail than the one on the HA statistics page?

peak spruce
#

Does your daily sensor only change state once per day to that total, or does it represent current daily usage and reset to 0 at midnight?

wintry solstice
#

The latter. It accumulates over the day.

peak spruce
#

OK, think that's the same as mine, will dig it out when I get home this evening

knotty raptor
#

I think the utility meter would be a better choice for this.

limpid lionBOT
knotty raptor
#

If I’m understanding correctly, you really just want to track usage over a period of time. The utility meter does exactly that and you can setup daily, monthly, yearly, etc periods.

peak spruce
#

Utility meter is definitely better, the only problem is that it's not retroactive - so you can't process existing data

knotty raptor
#

Fair point.

wintry solstice
#

That might work.

#

I assume HA will then store a history of the data the utility meter generates? because that would be plenty good enough for me.

knotty raptor
#

But, as @peak spruce said, it will only start tracking data from when the utility meter was created.