My largest Home Assistant Recorder entry used 1.41 GB. The sensor hadn’t written a single row in the last 30 days. Meanwhile, a Tesla automation had quietly accounted for 8.65% of all new state rows. I needed two numbers to decide what to look at first: how much history I already had and what was still coming in.
Start with Settings → System → Storage
In the December 2026 beta, I opened the Database card and ran the native report. My 11.21 GB database took 5 minutes 26 seconds to scan. I sorted the entity table by estimated size, then searched by entity ID to compare individual results. The table distinguishes state rows from long- and short-term statistics. Size is an estimate for all retained history.
The top entry on my installation was an old telemetry sensor. I had already excluded it from Recorder. Its last write was October 22, and I retain six months of history. Those 194,972 old state rows can age out on their existing schedule.
Count what Recorder wrote recently
On the Systems page I keep a 90-day database growth graph alongside daily counts. Each blue bar on the ingest chart represents one completed local day. The seven-day average smooths out the occasional spike. Mine rose from roughly 100,000 daily rows in September to around 200,000 in late November.
The 30-day table gives me an entity to investigate. I count all state rows in the window before ranking entities. I also count how often each one made the daily top ten. An entity that appears all 30 days deserves a different look from one that was busy on a single afternoon. The screenshots and exact figures from my database show both views.
The Recorder dashboard setup guide links the sensor package and both chart definitions. The MariaDB workload collector shows how I count daily state rows and rank the last 30 days of writers.
For a first pass, this read-only MariaDB query returns the ten entities with the most state rows in the last 30 completed days. Run it against a copy of the Recorder database with the database session set to your Home Assistant time zone. It counts rows still present since the last purge. If you keep ten days of raw history, a 30-day query can only recover those ten days. I cache completed daily counts for the longer view.
SELECT sm.entity_id, COUNT(*) AS state_rows
FROM states AS s
JOIN states_meta AS sm ON sm.metadata_id = s.metadata_id
WHERE s.last_updated_ts >= UNIX_TIMESTAMP(CURRENT_DATE - INTERVAL 30 DAY)
AND s.last_updated_ts < UNIX_TIMESTAMP(CURRENT_DATE)
GROUP BY sm.entity_id
ORDER BY state_rows DESC, sm.entity_id
LIMIT 10;
Follow one entity through both views
Our Tesla charge-rate alert wrote 508,509 of 5,876,569 rows from October 29 through November 27. It appeared in the daily top ten on all 30 days. I expanded its name, copied the entity ID and found the same automation in Storage: 1,026,749 retained state rows and 170.74 MB. Those counts track updates to the automation entity. They don’t count charging incidents.
At our house, the charging automation alerts us and requests a stop if the car draws more than 18 amps at home. I want that protection running. Before excluding the entity from Recorder, I’d check whether a chart or a troubleshooting routine uses its history. I left the automation and its history enabled. My earlier entity-cleanup walkthrough shows how I check dependencies.
Where the idea came from
Beybars shared the DigitalHouses Recorder app, which ranks writers over the last 24 hours and across retained history. That inspired the ranking on my dashboard. During November’s What the Heck discussion, aruffell asked how to see what was bloating Recorder and teskanoo pointed readers to the December beta. Erwin Douna contributed the native Recorder report and its Storage page.
Watch the Storage report and Systems dashboard walkthrough on YouTube.