For several weeks (maybe more), some of my sensors no longer display information on the Gladys web page. However everything is visible in Zigbee2MQTT.
Context
I have 100% Zigbee-connected devices. From 220V plugs to temperature or motion sensors. I therefore use the dedicated service, which relies on Zigbee2MQTT.
Description
In the Zigbee2MQTT web interface I see that all my sensors are reporting their info:
Debug
Do you have any idea how to debug this situation? Check in the DB? @pierre-gilles we had mentioned that my DB needed cleaning, but I admit I don’t know where to start. Maybe we should document a small section for users in my case
It’s clear, as @VonOx said, the value reported by the Xiaomi sensors is not reliable at all! I’ve also had cases where the value was above 95% but the sensor had stopped working.
When I was using Domoticz, there was an option to test the time between two value updates. I had it set to 24H and beyond that I would receive a message telling me that I hadn’t received new data from the sensor. That’s how I realized that the battery level reported by the Xiaomi devices was unreliable.
I’ve made some progress on the subject and noticed two things, one of which could almost be considered a bug depending on how you look at it.
Indeed, the battery value of the Xiaomi devices seems absolutely useless. The sensors stop working overnight. [EDIT]: This is true for most sensors. But one of them had lost the connection, I had to re-pair it.
BUT Gladys will always display the last recorded value, even if it is weeks old. I’m realizing this now, because my sensors didn’t show the high temperatures from earlier in the week.
I now understand why, @pierre-gilles, some graphs were displayed empty (if you remember): since the sensor no longer sends data, only the last known value is used in the graphs. I’m also wondering how aggregation is handled?
I also noticed this because the scene that notifies me when a room has been too humid for several hours was always returning the same thing… Since November 17, 2021?!
[EDIT]: That’s true for most sensors. But one of them had lost its connection, I had to re-pair it.
And regarding the unavailable status, it’s a Gladys Core development because it will bring uniformity. That’s why you can choose very high values (24h or 48h); that should work for all sensors.