Residential energy credits

Form 5695 addresses credits for home energy improvements.  In 2022, I upgraded my attic insulation as well as added crawl space insulation and a new (upgraded) vapor barrier. But in reading the instructions for this type of improvement, it looks like you can only get a credit for the material cost, not installation.  I wanted to confirm that because the company's invoice does not break it down between material and installation.  And then it also looks like whatever credit I might claim needs to be offset by any amount I got as a rebate for this upgrade from the state.  Any experience with this type of credit would be appreciated.