I've been working from home for the last year at least. I must say it is dreadful and downright uninspiring, however if you can find someone to keep in contact with, especially someone working on the same project (who pushes and challenges you) things won't be so bad.
I suggest lots of outdoor activities, exercise and lots of breaks away from the computer even if you feel like you should be working.
edit: you could also try to find a meetup group in your area to get inspiration or simple social interaction with folks who are into similar stuff.