Average room temperature: exclude values outside the "normal" ranges from calculations

Hello,
in one room, I have 2 temperature readings coming in: one from a standard sensor, the other from the radiator pilot-wire module which stays at -999°C all the time because it’s unused.
And I occasionally get a wildly incorrect average temperature:

Could we exclude from the calculations values below absolute zero (-273.15 °C) or some other very low value?

Thanks in advance :grin:

Hi @mutmut,

Which integration are these sensors from?

1 Zigbee and 1 Z-Wave JS.

Ok, indeed we can eliminate the outliers!

1 Like

Hello,
I’m back with one more check to do.
In my living room temperature, I have a Zigbee sensor, my Netatmo and my Dyson (via matterbridge).
For now my Dyson has no value (because I’ve disabled the appropriate matterbridge plugin) and I get this, with an obviously incorrect average temperature:


Would it be possible to add a check on the device to know if it is OK or KO

It’s already the case: the « Room Temperature » widget displays an average of the temperatures received in the room during the last hour (source: Gladys/server/lib/device/temperature-sensor/temperature-sensor.getTemperatureInRoom.js at master · GladysAssistant/Gladys · GitHub).

Your KO device will stop

Okay, thanks for the info, I’ll keep an eye on it then :slight_smile:

1 Like