Assume that you got a sensor with “state_class: measurement” since August 15.
Also, this sensor have some “scan_interval” like “60 sec”. Question: can I see a statistical data on a graph for the last 1.5 months?
Answer is “Depends”.
Consider this example:
type: vertical-stack
cards:
- type: statistics-graph
chart_type: line
period: hour
days_to_show: 180
entities: &ref_entities
- sensor.iiyama_ohm_ssd_corsair_temperature
stat_types: &ref_stat_types
- mean
- min
- max
- type: statistics-graph
chart_type: line
period: 5minute
days_to_show: 180
entities: *ref_entities
stat_types: *ref_stat_types
Same card, with different “period”.
And see a difference:
Some person found out that the statistics is stored as “short term statistics” - which is SHORT.
Why this is not mentioned in any docs?
Moreover, why statistical data is kept in SHORT TERM?
Docs related to statistics seem to be poor and unclear.
Earlier I asked about clarifications for statistics:
Starting from 2022.10, the “period: 5minutes” graph is displayed for 7 days only.
Even my Recorder’s settings is “purge_keep_days: 10”.
Strange things.