Can I get the home energy credit for solar batteries for my second home?

I purchased solar batteries for our second home. We do not rent out this home and it is only for our use.