Hi,
First of all I have looked around and didn’t find a solution here.
I was already aware that if HA receives an update from an external sensor with the same value it isn’t considered a state change. I learned this the hard way by trying to create a template sensor to add the new value to a “total” sensor on state change. (In this case a gas sensor which sends the usage every minute added to a total_increasing “Gas_Total” sensor). I was able to solve this by using the Riemann integral integration which can now perfectly track the total usage.
However I have now added InfluxDB integration and have the same problem. I can get the graph (in grafana) to look the same as the history graph in HA but I’m at a loss on how I can integrate (as in integral) this graph.
Any help on solving this either in grafana, InfluxdB or by sending the state every minute to InfluxDB would be appreciated.
(Of course I could sent the “Gas Total” sensor to InfluxDB and find a way to derive the per interval usage from there…but again I wouldn’t know how)