Good evening,
I couldn’t find a category for this post.
I’m experimenting with Gladys alongside my own home automation system (homebrew).
I’m testing the thermostat function, the absence of which was a personal hurdle for me to adopt Gladys.
So, I created several thermostats (one per room). In each of these rooms, I have several Zigbee or RFX probes (Oregon).
As a result, I assign the probes in the room to the thermostat I create for that room, thinking the plugin will average them (as on my own system).
Result: 4 probes in a very small room: 19.8°C, 19.4°C, 19.5°C and 19.5°C, which should give: 19.6°C, but the plugin displays: 20.3°C.
In another room, Gladys temperature: 22.2°C, while the average is 19.9°C.
There does seem to be an issue at first glance. @Will_71 could you take a look?
Can you tell us exactly where these temperatures are coming from? (which external integrations).
If you test with just one of these probes, do you get a good (consistent) temperature?
Thank you for the feedback. I looked closely at the calculation and found a discrepancy between two parts of Gladys:
The regulation (which actually controls the heating) averages the probes. It ignores a probe that hasn’t reported back for more than an hour, as long as another probe is up to date.
The dashboard widget averaged all probes, including the one that no longer reports.
However, a probe that has stopped transmitting (low battery, Zigbee connection loss…) keeps its last value indefinitely. The temperature displayed on the map could therefore be pulled towards an old value and no longer match the one on which the thermostat regulates.
I have prepared a correction: the widget and the regulation will use exactly the same calculation. The widget will also ignore a probe as soon as it exceeds the one-hour delay, without waiting for a page reload.
However, this doesn’t necessarily explain your case 100%: an average of 20.3°C when all the probes you see are below, that’s not possible with the displayed values alone. To be sure, could you give me, for each probe associated with the thermostat:
its current value;
the date of its last update (visible on the device page, or by hovering over the value);
its unit (°C or °F), in case one of them is configured differently.
Also check that no forgotten or out-of-service probe is still selected in the thermostat configuration.