I had the same issue and here's what worked for me:
Stop trying to force yourself to code at home. Look at it like music creation, spend your time trying to find inspiration, problems to solve.
Don't follow major development rules like you do at work which are designed for coordination and management amongst groups.
Be okay with crappy incomplete code.
Feel free to abandon it and return to it later...months later.
As PG says...don't code. Hack. It's way more fun.