The solar panel system must be "installed" to the house and provide power to the house. Under the revised IRS section 25D (after the Inflation Reduction Act), a battery system qualifies if it is "installed" to the house, and has a capacity of at least 3kWh. I don't believe a temporary extension cord set up will qualify for either credit.