Hello,
In my living room, I have several associated temperature sensors (multi-protocol) :
SONOFF SNZB-02D sensor (Zigbee)
Netatmo station (Netatmo)
Dyson fan (Matter)
« oeil de soron » Fibaro FGMS001 (Z-Wave)
I display the room temperature on my dashboard and the average obtained does not match the average of these 4 devices.
Looking at the details, I noticed that the Netatmo station was sending me 3 temperature values: current, min and max.
And so with the min and max, the room temperature average on the dashboard is skewed.
Is it possible to eliminate the min and max values from all devices that send these data for the display of the average temperature of a room?
This is « my fault » ^^
There should have been a better spec at the time. We’ll see what @pierre-gilles thinks, but I suppose the only way to do it today would be to:
create 2 new types of TEMPERATURE_SENSOR: for example « temperature_min » and « temperature_max » (we could consider creating a « temperature_avg » now)
I took all the temperature devices. The 3 that are current temperatures are :
Living room hygrometer (Temperature - Hygromètre salon) = 23.5°C
Living room hygrometer (Temperature - room Living room) = 22.5°C
Living room valve (Temperature) = 22.5°C
=> Average temperature = (23.5 + 22.5 + 22.5) / 3 = 22.83°C => Ok.
If I add the 2 that are now again of a different type :
Living room hygrometer (Maximum temperature) = 24.2°C
Living room hygrometer (Maximum temperature) = 23.5°C
=> Previous total average temperature = (23.5 + 22.5 + 22.5 + 24.2 + 23.5) / 5 = 23.24°C => Not Ok => The changes are therefore valid on that side.
Hope I didn’t forget anything. I struggled with the tests because I couldn’t find the data used (apparently in the seeders). And there was an error in the types passed for the temperature (type = « temperature » instead of « decimal » => the tests passed because we weren’t taking types into account).