Midges should be able to be lured with some honey lathered on exquisite rot inside of a lantern.
Two of these midge lanterns, that may or may not require constant 'refuelling' with some kind of food item. The logic behind this item is that, affixing two midge lanterns onto two cornerposts around an open gate, or an empty space no larger than 3 tiles, would ward off the passage of tamed animals that 'know better', like a lorb-brain shock collar, except out of fear of being bitten.
Leashed animals would be allowed passage through these gates, but regular animals would not wander through them out of animal-brained fear of distracted bugs.
This is a good idea.