The problem is the people you are talking about aren't going to work more at home. They will work even less. They ruin this for people like you and me because they can't be disciplined. If they aren't at an office they can't get their job done.
If they are goofing off at home and not completing their function, fire them.
If you can’t even tell if the function is being done or not then the functions that aren’t being performed are those of management. But ensuring everyone comes to the office doesn’t solve that problem.