Don't trigger buttonevents for Xiaomi WXKG01LM in hourly report
Also don't fire state.lastupdated event, since this might cause rules
for Xiaomi motion and contact sensors to fire.
Issue
@@ -8744,10 +8744,13 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
{
// don't update Mija devices
// e.g. lumi.sensor_motion always reports 1
+ if (item)
+ {
sensor.updateStateTimestamp();
- enqueueEvent(Event(RSensors, RStateLastUpdated, sensor.id()));
+ //enqueueEvent(Event(RSensors, RStateLastUpdated, sensor.id()));
updated = true;
}
+ }
else if (sensor.modelId().startsWith(QLatin1String("lumi.sensor_wleak")))
{
// only update state timestamp assuming last known value is valid
