It depends. If the home is your personal residence then no, there is no deduction for a generator installation. Keep the information with your home purchase records as the cost could be added to your basis as an improvement when the home is sold.
However, if the home is a rental property, a whole home generator install would be considered an improvement and depending on the cost may be deducted in the first year under a safe harbor election. In the "Rental, royalty..." topic enter the cost as an asset and you will be asked about the safe harbor limits. Here is an IRS link with more information on tangible property safe harbor deductions.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"