New York Residency Status

Hello. I am retired and own a house in Manhattan, New York, half of which I rent as a separate apartment and pay tax on the income etc.  In 2021, however, I was in New Zealand for 10.5 months. Should I file as I usually do -- as a New York resident - - or as a non-resident because of being out of NYC and NYS for most of the year?