Has anyone found a good way to automate “housekeeping” tasks in Home Assistant?
I’m thinking about things like:
- Finding and listing (or deleting) unavailable entities
- Detecting and removing orphaned devices (devices without active entities)
- Identifying old or unused helpers, automations, or scripts
- Spotting outdated or incomplete integrations
- Cleaning up retained MQTT messages automatically
- Regularly purging the recorder database, especially entries for deleted entities
Are there any blueprints, scripts, add-ons, or integrations out there that help with this kind of cleanup?
Or have you built your own solutions to keep Home Assistant tidy and performant?
I’d really appreciate any tips, examples, or experiences you can share!
(Manual cleanup works of course, but the more we can automate it, the better…)