Greetings
I’m troubled. I record accumulated oil usage for my house heating and I just noticed the accumulation broken in the middle of the night on the 17th.
I don’t understand why, I don’t do any upgrades at night and the daily graph is working but both my yearly and monthly accumulations display the same value.
Your database doesn’t have the data going back further than the number of days that you have configured. By default, the database purges information every 10 days, so you’ll only get 10 days of information. You should switch to long term stats.
Hi
I usually don’t bump my own posts but I feel there is some extended piece of knowledge I don’t understand here. The documentation regarding history stats is pretty easy to understand.
I have a sensor which goes “on” when the oil is flowing and I’d like to count that flow. Pretty easy, count the amount of “on” using history stats. Profit.
But this only works for daily stats and not monthly or longer where the accumulated amount is truncated at some point.
Increase the number of days before you purge. As I said before, you only have 10 days of information currently. If you want more, you need to change it to more by adjusting recorder’s purge interval.
You can’t use history stats with long term statistics, but it will give you statistics for long term statistics if you set it up. I don’t know what it will do if you’re trying to count, and I do not know if you need measurement or total_increasing for that. That’s where you’ll have to play around, and it may not work.
That uses long term statistics. History stats does not. I don’t know how to make this any more clear. You’re not recording enough information for history stats. You need to adjust the recorder integrations purge setting to larger than 10 days for the history stats integration to see more than 10 days of information. This is a limitation of history stats.