Homeowners can write off 30% of costs for upgrades such as installing energy-efficient doors, windows and insulation, up to a dollar cap.