Deductions & credits

Since it is an improvement it increases the basis of your home.  So in the section for Depreciation for the Home Office you should add the cost of the generator.