#How can I set entities as statistics
1 messages · Page 1 of 1 (latest)
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.
?
history, maybe hourly average logged for that sensor
it does work for energy dashboard
if you look to devtools, what attributes does the sensor have?
where exactly? https://i.imgur.com/obkvRvk.png this?
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
oh, that is confusing for me ... is it possible dashboard with selector for entity and date range linked to the statistics graph?
unfortunately no, at least not with the stock cards. perhaps something custom exists but I'm not aware.
ok thank you, now I at least understand how it works a little bit