On/off grid solar Inverter