At sun-set it starts getting darker in the attic than it is outside. The bats in the attic see the light from outside and leave to hunt. That's sometimes why bats come into houses from the attic or basement... they are in the dark and see the lights in the house, so they think that's the outside and fly towards the light.
When the sun starts to come up, the bats sense the light and look for a dark place to roost... your attic. So, put some lights in your attic that stay on past sunrise. I put a photo eye well under the eaves on the west side of my house and hooked it to some fixtures in the attic with CFL bulbs in them. As the bats leave in the evening and the sun sets, the photo eye turns on the lights in the attic. They stay on all night, so any returning bats won't like it in there. And they don't go out until about half an hour after sunrise, so by then the bats have gone elsewhere to roost.
The CFL bulbs are only 7 watt, but they only last about a year or so. I'm putting in LED bulbs soon.
Anyhow, I did this after we had 4 bats in the house in two years. Haven't had any in about 3 years now. Maybe it works.