You do not have to be connected to the electric grid to claim the solar tax credit. You only need to have a solar power system that’s generating electricity for your home. That means off-grid solar homes are eligible (including their battery storage units). In most cases, solar RV homes are eligible, too.