If you have woodpeckers pecking at your house, it's likely because they're attracted to the insects living in the wood. Woodpeckers can cause damage to your home by pecking holes in the siding or trim. If you have woodpeckers that are getting inside your walls, you'll need to take action to deter them.
One way to deter woodpeckers is to make your home less attractive to them. Remove any dead trees or branches near your house, and trim back any overhanging tree limbs. Keep your yard clean and free of debris. You can also try hanging shiny objects around your property, such as aluminum foil or Mylar balloons. The movement and noise will help scare away the woodpeckers.
If these methods don't work, you may need to resort to more drastic measures. You can try shooting off a starter pistol or fireworks near the birds, but this should only be done as a last resort. It's also important to make sure that you're not inadvertently providing food for the woodpeckers. Clean up fallen fruit from trees, and seal any cracks or openings where insects might be entering your home. By taking these steps, you can help keep woodpeckers from causing damage to your property.