Deductions & credits

You can.

 

You'd enter the cost of your solar panels, minus the credit amount, as an asset for depreciation purposes, and prorate to reflect the portion of your home that's devoted to your home office.