Am I using history and recorder wrong?
The history graph card mostly always shows “No state history found”. But when I open the card page, it starts accumulating data for the graph.
But as soon as I leave that page and open it again, the data is gone.
5 minutes later:
Here is my recorder code from my configuration.yaml:
#---------- Recorder ----------#
recorder:
auto_purge: true #default: true
# Keep all entity history for 90 days
purge_keep_days: 90
# Customize retention period for specific entities
include:
entities:
- sensor.dexcom_stevermann_glucose_value
- sensor.freezer_temperature_c
- sensor.xiaomi_mi_1_temperature_celsius
# Exclude specific entities from history recording
exclude:
entities:
- sensor.date
domains:
- sensor
- switch
entity_globs:
- sensor.sun*
- weather.*
The glucose_value is working, but neither the freezer nor the refrigerator sensors are collecting any data.
Here is the code from my card that should show the history of the freezer temperatures:
- type: history-graph
entities:
- entity: sensor.freezer_temperature_c
hours_to_show: 6
refresh_interval: 10
title: Freezer Temperature
Any ideas would be appreciated.