Analog input average in Computed Attributes

Dsuareza month ago

Hi everybody,

Do you know if there is any way to get an average analog input?

i am getting the attached graph i would like to get an average in 5 minutes to get a line.
Fuel spikes.png

Anton Tananaeva month ago

There might be a way to do it using the last value. You can do something like 0.8 * lastValue + 0.2 * currentValue.

Anton Tananaeva month ago

That example assumes once a minute report, but hopefully you get the idea.

Dsuareza month ago

Hi Anton thank you so much, I got it.