I worked 2 months in NY and then retired and moved to Maine for most of the year. Do I have to report this.

I have kept my home in NY and rent in Maine.
I receive social security and a pension from NY.