Update history-graph.markdown (#38858)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Jack Journeyman 2025-05-05 10:00:44 +01:00 committed by GitHub
parent 5e147e0d5b
commit c42a96305c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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