It would be much more useful if the recoder handled entities in the following ways:
-
There are entities for which it is enough to store the statuses of the last x days. The recorder knows this now.
-
There are entities that should be stored forever, for example PIR sensor, light, heater, … There are not many of them and they do not generate much data.
-
The most important thing: there are entities that generate a lot of data (for example, consumption meters, thermometers, …), it would be enough to store them in the long term statistic table, but not in the states table. Currently, a three-phase consumption meter generates 100,000 records per day, which must be deleted manually.