N.Y. Real Property Law § 342
1. Definitions. For the purposes of this section:
(a) "restriction on use" means any covenant, restriction, or condition contained in:
2. A homeowners' association may not adopt or enforce any rules or regulations that would effectively prohibit, or impose unreasonable limitations on, the installation or use of a solar power system. A restriction on use which effectively prohibits the installation or use of a solar power system is unenforceable and shall be void as contrary to public policy. For the purposes of this subdivision, an unreasonable limitation includes, but is not limited to, any restriction on use that: