NY resident
Under the facts you give, you are still a NY resident.
The main rule is that:
The spouses of military personnel who come to California are California residents if here for other than a temporary or transitory purpose. (1997 FTB Pub 1032, Tax Information for Military Personnel).
Purchasing a house does not change the residency of military personnel or their spouses. The rule that follows comes from a letter from the Franchise Tax Board:
A member of the armed forces owning a house in California is not a resident of the state where his presence resulted from military orders and his assignments were temporary in nature, extending to a maximum of two years but subject to termination at any time.
In order to show taxpayer a California resident for income tax purposes, his presence in California must not have been of a temporary or transitory nature. Taxpayer’s presence resulted from his military orders. Such assignments were temporary in nature, extending for a maximum of two years, but subject to termination at any time. The mere acquisition of a house is insufficient to bring taxpayer within the scope of the Soldiers’ and Sailors’ Relief Act and, thus, “freeze” a California residence status on the taxpayer for all periods after its effective date. Therefore, in view of the above, it is concluded that taxpayer has not acquired a resident status in California. FTB, LR 93, December 5, 1958.