The plot thickens. This is still happening, but I’ve been able to confirm that:
If I create a new history_stats via the UI, exactly like the above, it still doesn’t update.
If I create a new history_stats in configuration.yaml, changing only the name, it still doesn’t update.
If I use Developer Tools/YAML to “reload” the “History Stats Entities,” the two YAML-defined entities suddenly have the correct values (total run time from the previous day.) But the one created via the UI still shows zero.
If I restart HA, all three entities suddenly have the correct values.
So, I’ve ruled a couple of things out. It’s not that the database is missing the data. It’s not that my definitions are wrong.