Hi everybody,
I am measuring my water tank level with a pressure transmitter which is connected to a shelly UNI (adc-input). The transmitter often changes its voltage around 1 time per second, so there is a big amount of data and my database ist growing very fast since I installed the sensor.
A template sensor is used to calculate the water level in percent.
So far everything is nice and working. Now the problem:
My database is rising very fast since I installed the sensor, this altough I only allow my database to record the statistics-sensor. The shelly-adc (the origin of all sensor data) and the template-sensor are excluded from the record-integration. Same is for the history-integration.
But it seems that the exclusion of the origin-sensor and the template sensor is not working, maybe because they provide the data for the statistic-sensor.
My question is: Is there a better way to reduce/to minimize the measured and recorded data of my pressure transmitter? Indeed it would be enough to have one reading of the water tank level every five minutes, maybe time-pattern triggered template sensors?
Yes, I have read this. With the include-integration I have defined the entities which will be recorded. Only the statistic-sensor is recorded. But thats the point: The growth of my database is unbroken.
What about a template with a time_pattern trigger? Just take the raw value every 5 (or whatever) minutes. You won’t get averaging, but at least you won’t be writing to the database every second.
This might also be a good time to plug my Feature Request to allow recorder retention periods per entity, rather than globally. Again, it wouldn’t stop the writes, but it would keep the database from filling up if you could set it to purge that one entity more frequently.
Maybe fuellstand_zisterne_prozentual is updated all 5 minutes, but obviously also at additional times, most probably triggered by the value changes of its source (but should not do so according to ha documentation). So the question is: How to suppress the sensor updates through value changes of its source but only through the trigger set?