Kevin Purdy gives some suggestions for staying productive at home. One of them is having a routine, such as starting work at the same time every day and taking a lunch break, etc.
I’ve found that as a self-employed guy who works from home, having a routine and a daily schedule helps keep me from over-working. My schedule is more than just a way for me to stay productive and on track, it’s also how I set boundaries for how much time I work.