History Editor - edit, fix, and bulk-correct state history and statistics

Claude AI assisted? You didn’t mention that in your post.

You are directly editing the database with your code. Are there any rollback features, transaction logging, or backup/restore facilities should there be any errors encountered?

Should the database structure change in the future, are there any provisions for your code to cope with that? Version checking, etc?

Here be dragons. Immensely powerful, but the ability to make a mess is just so easy. I know it will be used widely, the developers of HomeAssistant avoiding adding this functionality for good reasons and the temptation to ‘fix’ things up by tweaking data points is so overwhelming, especially by new users.

Folks: be careful. You’ve been given the equivalent of a machine gun to swat a fly. Use it sparingly. Use it wisely.