The answer depends on what you mean by "for a while". If its a few months or a year or two, it does not matter what the alternative career path is, as long as you do land a job that pays enough for you to support your family. If you are looking for alternate career paths for more than a couple of years, why think of this as temporary? Just switch to a different path and reevaluate when you stop having fun. Check this list to see which of the following helps:
1. Take a week or two off. Go on vacation. Maybe you just need a short break.
2. Find a new job as a developer. The change in environment (people and/or technologies that you work with) may do the trick.
3. Switch to a PM role for a while.
4. If you think being a developer is no longer fun, consider a career change.
Whatever you do, do not wait too long for the problem to fix itself. Do something now, before you start to drain out and find yourself unable to muster the energy and enthusiasm to come up with a solution.