Michigan Resident asked to work in NY for 2 years

Hello,

 

I am a Michigan resident.  I have owned my home in Michigan since 2019.  My company is located in Dearborn Michigan.  I have been asked to live in NYC for 2 years.  I plan to keep my House in Michigan to come home to during breaks and long weekends.  My son will be living there and watching over it.  My company will be leasing an apartment in NYC on my behalf where my wife and I will live and work out of while supporting my NY client.  What should I do to minimize tax liability in both states?  What measures should I take?