There were electrical generating stations in the US in the 1880s so I'd say we've had commercially available electricity for a tad more that 50 years.We've only had electricity for about 50 years.
This is a FWIW (since I don't have one) on automatic coop doors. There are lots of them out there. The downside (for me) on the one shown and others like it is that it protrudes when open. In my case, I know it wouldn't be long before either I, the dogs, or something else ran into it and probably damaged it. I am considering an auto door for the run since my chickens free range daily. An auto door would save me a couple trips out to the coop to open/close the run door. The one I'm considering is the ADOR1. https://adorstore.com/products/ador1-automatic-chicken-door