People are social animals. Living and working by yourself 24/7 is a recipe for burn-out, maladjustment, and general unhappiness. I'd recommend finding some ongoing events to draw you out of the house: volunteer with a local charity, or join a programmers' group in your area.
Try to spend at least an hour a day interacting with people you don't see every other day. (I.e., not a live-in significant other or a business partner.)
If you are in a funk, go to somewhere with a lot of people and say hi with a smile to first twenty people you cross paths with. The first 15 probably won't respond but once you cross a magic line and people start smiling back you'll feel more connected
If I get sick of being home, I head out to a movie. The important thing is to interact with other humans, so call a friend or go somewhere by yourself and make an effort to be gregarious. I find it doesn't take much to recharge.
Try to spend at least an hour a day interacting with people you don't see every other day. (I.e., not a live-in significant other or a business partner.)