Our coach has a generator controller that provides an Auto Mode (Onan Energy Command 30). You can set it to start the generator should the power fail and the air conditioner needs to run. We were in Moab Utah recently when the power failed during the extreme heat of the day. Our small dog "Sami" was in the coach while we were touring the Arches. When we returned, she was perfectly comfortable as the generator started and kept the air conditioners running. Probably saved her life.
You might check to see if your rig has this option or to see if one is available.
Gerald D Heinrich