Actual residence is not necessarily domicile, for domicile is the fixed placeofabode which, in the intention of the taxpayer, is permanent rather than transitory.
Whether or not the taxpayer has free and continuous access to a placeofabode is a primary consideration in determining if the taxpayer maintains a permanent placeofabode for substantially all of the taxable year.
If you have a permanent placeofabode in New York (even though it is not your primary residence) and spend more than 183 days in New York, you are a statutory resident of New York, regardless of your domicile.