Instead always swicthing on the heater when the inveter is off, you may consider to design it in a precise way, so that you switch a heater coil, through a relay, when the temperature in the Inverter cabinet decreases below a certain point. This can be easily done with a comparator IC like LM324 or LM358 or so.
Cheers