From version 0.64, Home Assistant will by default purge recorded state history that is older than 10 days. If you want to keep your recorded data for longer than that, you must configure the number of days to retain:
从版本0.64开始,Home Assistant将默认清除大于10天的已记录状态历史记录。如果您想保留您录制的数据的时间超过此时间,则必须配置要保留的天数:
recorder:
purge_keep_days: 30
If you want to keep the previous default of never deleting history, use this configuration:
如果您想保留从不删除历史的先前默认值,请使用此配置: