Mdified to avoid reporting lock state without the lock itself reporting it (after doing a lock/unlock command)
@@ -943,7 +943,7 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp)
rspItemState[QString("/lights/%1/state/on").arg(id)] = true;
rspItem["success"] = rspItemState;
rsp.list.append(rspItem);
-
+ if (!isDoorLockDevice)
taskRef.lightNode->setValue(RStateOn, targetOn);
}
else
@@ -1490,7 +1490,7 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp)
rspItemState[QString("/lights/%1/state/on").arg(id)] = targetOn;
rspItem["success"] = rspItemState;
rsp.list.append(rspItem);
-
+ if (!isDoorLockDevice)
taskRef.lightNode->setValue(RStateOn, targetOn);
}
else
