I have a grill thermometer that works great with Home Assistant (Inkbird IBT-4X, but I don’t think it matters). However when using it, I want to have an option to clear the history of the sensor completely, because there’s no real point when cooking today to see yesterday’s history.
My script for clearing the history is:
alias: Clear iBBQ history
sequence:
- service: recorder.purge_entities
target:
entity_id: sensor.ibbq_1d0f_temperature_probe_1
data:
keep_days: 0
mode: single
In the history for this sensor I still see data after running the script.
I tried multiple times. I tried restarting home assistant.
This is what I see in the history:
The weird thing is that it looks like only some data survived the purge, I had a lot more data that was cleared, it for some reason just kept a few data points.
I also don’t see any errors in the logs.
Am I doing something wrong? Or is there an issue with the purge service?
EDIT: I found this post which seems to be exactly it:
It wasn’t clear to me that purge actually doesn’t clear the long term statistics.
So I guess nothing I can (easily) do?