This is especially important if you plan to sell your home in the future, as improper installation is a code violation. When using a portable generator to power appliances in your home, the National Electric Code ( NEC 700.5 and 701.5) requires you have a properly installed transfer switch. It is required by the National Electric Code.While a transfer switch is technically not necessary, let’s consider why it’s a good idea when connecting a portable generator to appliances in your home.