mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Update history-graph.markdown (#38858)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
5e147e0d5b
commit
c42a96305c
@ -93,6 +93,12 @@ name:
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
### Long term statistics
|
||||
|
||||
Home Assistant saves long-term statistics for a sensor if the entity has a state_class of measurement, total, or total_increasing. For short-term statistics, a snapshot is taken every 5 minutes. For long-term statistics, an hourly aggregate is stored of the short-term statistics. Short-term statistics are automatically purged after a predefined period (default is 10 days). Long-term statistics are never purged.
|
||||
|
||||
In the history graph card, if the hours to show variable is set to a figure higher than the purge_keep period, long-term statistics will be used, with short term statistics shown in bold.
|
||||
|
||||
### Examples
|
||||
|
||||
```yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user