Deductions & credits

I spend more than the requisite time on the boat and it has two bedrooms, galley and bathrooms. I was told by a cpa claiming it as a second residence is an instant audit so I never followed through. I was interested in doing so to capture the tax credits for the solar/battery system I’m installing. Thoughts? Thank you by the way!