Lidl motion sensor (TY0202) don't reset presence
Wait for IAS Zone status, the sensor doesn't update presence if in activated state.
In future we should configure reporting for Zone status.
@@ -3126,6 +3126,12 @@ void DeRestPluginPrivate::checkSensorStateTimerFired()
if (sensor->durationDue.isValid())
{
QDateTime now = QDateTime::currentDateTime();
+
+ if (sensor->modelId() == QLatin1String("TY0202")) // Lidl/SILVERCREST motion sensor
+ {
+ continue; // will be only reset via IAS Zone status
+ }
+
if (sensor->durationDue <= now)
{
// automatically set presence to false, if not triggered in config.duration
