The only way to completely stop woodpeckers from pecking a house is to switch exterior materials. Composite materials tend to stop the pecking. You can also hang reflective materials or use fake owls and snakes. These don’t make for the best look, though.
We find that many times woodpeckers return to the same boards. So when the situation fits we recommend replacing the damaged wood boards with a product like Azek or James Hardi. These composite materials are paintable and discourage woodpeckers from visiting the same spots in the future.
The fake predators work until the woodpeckers figure out they’re fake. You’ll have to move them once a week or so to keep up the illusion.
Woodpecker tape or a reflective tape has worked for some clients in the past. You nail the tape to the exterior of your home. It moves with the wind and reflects sunlight which helps keep woodpeckers away. But, over time this will wear through the tape and the tape will break off.