Feature description
Gladys notifies me when a sensor stops working, stops sensing, or no longer returns data.
Context
I have a 100% Zigbee home automation setup, with a majority of Xiaomi devices connected directly to Gladys.
Currently, the last known value is still used in scenes, as if the sensor were still working.
I also noticed this because the scene that notifies me when a room has been too humid for several hours kept returning the same result … Since November 17, 2021?!
The battery value of Xiaomi devices seems absolutely useless. Sensors stop working overnight while still reporting 100%!
BUT Gladys will always display the last recorded value, even if it is several weeks old. I’m realizing this now because my sensors didn’t show the high temperatures from earlier in the week.
Here are my recommendations:
Determine the age of the last received value.
When it exceeds 24h (or even 48h if needed), Gladys should warn that the sensor is offline.
Wouldn’t that amount to determining whether the device has transmitted information to Gladys (if the device is offline or online) ( feature already proposed )
In principle, these two requests are the same in my opinion:
we want to know whether a device is online or not.
but we have two different approaches, one via the network link and the other via the data
In both cases, if the recorded value is greater than X time then it should be considered obsolete. (allow a user to choose the TTL of their device or device group with a default TTL)
regarding battery management, all my Xiaomi sensors went from 100% to less than 50% all of a sudden …
This feature hasn’t been developed exactly, but I developed a feature that goes in that direction in Gladys Assistant 4.28: the ability to display only « recent » states on the dashboard: