Implemented DeviceLocatorMiddleware for discovering devices from a command