Using a transfer switch in an RV when installing an inverter can be a wise choice. Transfer switches are available at Outside Supply and here is why we usually suggest you use a transfer switch for basic inverter applications.
Using a transfer switch can provide extra protection to you inverter if shore power is connected. A transfer switch merely kicks out the inverter side of the circuit and switches to shore power automatically. When shore power is lost, the transfer switch again automatically switches to the inverter side of the circuit. This allows for continuous operation in case of power outage or disconnection.
A transfer switch is usually best installed by a professional electrician. This is really getting into the electrical systems of the RV. You need a pretty good working knowledge of power panels and transfer switches to keep you and your RV safe. If in doubt call in a professional Installer. Also check with local codes as they may require an electrician install any connections between panel and shore power line.
Here is a 50 amp transfer switch for RV installs that we carry on Outside Supply.

