There's no question that a porch light left on dusk-to-dawn will draw bees, which wear themselves out and die "flying into the sun."
I can only imagine what a light bulb looks like to a bee flying 12" away, with a compound eyes and heat-seeking ocelli.
So we keep porch lights off as much as possible. We did set an solar-LED uplight shining on a tree trunk/branches, located about 6 ft from the closest hive. From there it seems reasonable bees could "smell" their way back into their hive (or beg in). Or at least they would rest near familiar ground.
But oh no. Still, there are headbangers each night on the cool led surface of the projecting lens.
Are they stubborn teenage rebels playing chicken, like "Rebel Without A Cause"?
Or maybe conspiracy-theorist bees that think an alien has landed, like Shawn the Sheep's "Farmageddon"? - --
What can be done to have a bit of light in the yard?