I added a solenoid-operated latch to my chicken coop that opened when the sun came up. I didn't like getting up at 4:30 in the summer. At night I still manually closed it since I had to make sure I didn't lock a skunk or possum in with the chickens.
The coop was maybe 60 ft away so I opted for a battery that I'd have to recharge every few weeks. I don't have chickens right now but if I ever get more I'll use a small solar charger and maybe add a few more bells and whistles. I lost a lot of chickens to raccoons and hawks so maybe next time I'd actually do a fully enclosed chicken run.