#How can I set entities as statistics

1 messages · Page 1 of 1 (latest)

solid relic
#

seems that it is needed to do in yaml?

lone goblet
#

You don't "set" them as statistics, any entity that has valid properties will automatically have statistics generated for it.

I believe that means it needs to be a sensor, have a unit_of_measurement, and have a state_class of measurement or total/total_increasing.

solid relic
lone goblet
#

?

solid relic
#

does not show

lone goblet
#

does not show what

#

What are you expecting to see?

solid relic
#

history, maybe hourly average logged for that sensor

#

it does work for energy dashboard

lone goblet
#

if you look to devtools, what attributes does the sensor have?

solid relic
lone goblet
#

that works, ok it says that statistics are being recorded for that sensor. if you want to view them, you need to use a statistics-graph-card, not the history panel or history-graph-card

#

statistics and history are two separate datasets. history contains every change of the sensor and is kept for ~7 days or whatever you configure, statistics are averaged and kept forever

#

the only way to view them is with statistics-graph-card

solid relic
#

oh, that is confusing for me ... is it possible dashboard with selector for entity and date range linked to the statistics graph?

lone goblet
#

unfortunately no, at least not with the stock cards. perhaps something custom exists but I'm not aware.

solid relic
#

ok thank you, now I at least understand how it works a little bit