Hi,
I was wondering recently, that if I had to explain how to setup a ‘mean’ sensor in home assistant to someone, it would be a bit challenging to decide why there is Min/Max - Home Assistant (which through gui, although not in the documentation, supports min/max/mean/median/latest) and Statistics - Home Assistant (yaml only?) and, although with some discussion Filter - Home Assistant .
Three different integrations, with three different configuration options that enable to define ‘mean’ values.
Right now the work of thought is:
- you want a mean value of UNKNOWN number of samples, use the min/max/mean sensor.
- ah, you want to actually know and control the number of sample that will be used, then use the /statistics sensor,
- ah ah, you say your samples are not evenly spaced and the fact that during the day you receive more samples although during the night you only receive one but is valid for the whole night (example, indoor temperatures), then you need the /filter sensor.
Why not simplify all inside the statistics.