If I click on that sensor, I get a diagram of the counter readings showing the stairs of the rising counter.
But I want to see the deltas (the hourly or daily consumption) between the values not the absolute values.
Is it possible to get such a graph with on board tools or do I need to use external programs?
After some hours of thinking and trying something I must say that I have no idea, how to combine these three sensors to get any useful result.
The statisticssensor is useless without any detailed description: From where (which values) does it take its input? (What does 'number of samples mean? From which moment does the max_age count?) How do I access the change value? (I think that is what I need).
The history statistics sensor seems to be useless for this, since it can only return time spans, ratios or counts of boolean values.
The template sensor may be the correct tool to get the change attribute from the statistics sensor. But since I don’t know how to use the statistics sensor …
I thought calculating the consumption from a vector of counter values would be a simple an also very common task (in SQL it would be a simple query of maybe 10 lines, in python that could also be done in less than 10 lines of code) but with these badly described tools, … ??? These description are at most a memory aid for someone who had already used these tools many many times.
As I said: I have no idea how to begin.
Are there any examples how to do this or at least something similar?
I tried out a little trick, under helpers, I created a utility meter, with a an automatic reset. This seems to do what i (and everyone in this thread) wants. Useable for inputs for a gauge on a dashboard too.
Current gasusage is almost nothing, mostly the pilot light of the heater and occasional warm water.