Dwindling food resources in the environment make yellow jackets invade beehives. The smell of honey is a great attractant for these insects. Pheromones produced by bees may also give away the location of a beehive to yellow jacket wasps. Make sure to clear dead bees from near your beehive. They may be noticed by foraging yellow jackets and lead to an attack in the future. Feeding stations outside the beehive may also attract yellow jackets which then notice the nearby beehive. It is best to place bee feeding stations inside the beehive in autumn.