Deductions & credits

No, you cannot claim a solar credit on the second home. 

The credit can only be taken on your Main Home.

IRS Form 5695, Residential Energy Credits - https://www.irs.gov/pub/irs-pdf/i5695.pdf

 

Main home. Your main home is generally the home where you live most of the time. A temporary absence due to special circumstances, such as illness, education, business, military service, or vacation, won't change your main home.