My personal advice, as a freelancer who worked from home for almost two years, is to use a time boxing technique such as the pomodoro technique (this is the reason why I also built http://tomato.es time tracker) or just find a nice coworking near your place (this is the reasong why I founded http://memecoworking.com).