We added solar panels on as an option to a new build and paid 20,000 extra have them installed. Can we claim them as a home energy credit?

We constructed a house for a base price and had them add on solar panels for extra 20,000. We closed on the house after the construction was complete and solar panels were installed, but we paid for the solar panels and it is in our contract as an added option we paid for. Can we claim these solar panels for the energy credit?