Setup a schedule of things to do. Its basic but it works
I've been working at home for the last year due to complications, and its hard to get things done unless you know what you are doing.
Also, don't start playing games or doing stuff unless you've done some work. If you find yourself opening up Steam or whatever, stop yourself. Make it so playing games is a reward for when you get something done.
Most people similar things to keep working. Breaking up workloads helps too.