I don't know if it works but, when I started on BYC several years ago, many folks talked of the success they had using those little Vanilla tree car deodorants. They said the smell repelled flies and they hung them inside( out of chicken reach) and outside the coop.