Get your taxes done using TurboTax

To change your domicile, you not only have to start using a new residence, you also have to take active steps to abandon your old domicile (like selling your property or abandoning your lease).  You can have the same domicile even if you are away for a long time.  It sounds like you are still domiciled in NYC, so you are a resident, even though you were temporarily away.