Comment Close the door. (Score 5, Informative) 480
If you don't have an office in your home, get a different job. Close the door and make sure your spouse/family knows that between XX:XX and XX:XX hours, you're working, you're not home.
It takes some getting used to...but they'll get it eventually. Just keep the door closed.