Deductions & credits

we didn't install the solar panels on the home we purchased last May 10, 2021, but they were never paid off by the previous owner and when we closed on the house, we had to also close on a 2nd loan to the owners of the solar panels for over $28,000. it is a 30 year loan that we are now paying each month along with payment for the production of energy from the solar panels. so we now own the solar panels by way of monthly payments. can I write off the monthly payments that I am making to the solar panel company for the purchase of the solar panels only (not the energy they are producing)?