Deductions & credits

The purchase of a  generator for a personal residence is not deductible on a tax return.  

When the home is sold you would include the cost to the Adjusted Purchase Price of the home.