Have you sat outside and watched to see why they fly close to your house? Are they trying to escape another bird in pursuit? Are they looking for food and water? Birds often bath in my gutters after rain (oops).
If they're looking for food and water, put some down the back, far away from your doors and windows. If they're looking for escape you need some bushes or shrubs near the house that they can escape into. Depending what size bird - a small dense native prickle bush might help. Blue wrens particularily need these. But also new holland honey eaters, thornbills etc. And probably sparrows. But I'd be tempted to do something else for sparrows. Sparrows are very ingenious when it comes to sneaking food from strange places. I've seen them negotiate double doors at the botanic gardens cafe in Wellington. They fly right in with tourists walking through and you'd need a tennis racquet to stop them. Those flapping plastic ribbon doors they have on some fish and chip shops might slow them down though.