You can also sit potted lemongrass around your home to repel them, focusing on areas where flies can get in or tend to gather ...
Lemongrass (Cymbopogon ... "I probably water once or twice a week, depending on how much sun we get. In a house it would be similar, but the tips of the leaves may brown due to the low humidity." ...