Xiaomi water leak sensor rely on IAS report for water level (2)
Update state.lastupdated timestamp.
@@ -8710,6 +8710,14 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
{
// don't update Mija devices
// e.g. lumi.sensor_motion always reports 1
+ sensor.updateStateTimestamp();
+ updated = true;
+ }
+ else if (sensor.modelId().startsWith(QLatin1String("lumi.sensor_wleak")))
+ {
+ // only update state timestamp assuming last known value is valid
+ sensor.updateStateTimestamp();
+ updated = true;
}
else if (item)
{
