I'm late to the conversation, but this is our control app on my phone.
View attachment 2222057
We have a motion sensor in the run so it auto closes after motion in the run stops unless we see on camera that everyone is in and we can close the door in the app earlier. We set up the automatic rules based on luminance rather than on a fixed timer, but have the option to override the rules manually. Also have rules and control of the fan, electric fence, and (not pictured) cameras. One other rule we set up as a safety net with the automatic door opener is that is there is motion in the run, the door doesn't open automatically so we can check it out when we get up before letting the chickens lose in the run if there is potential a predator that made it through the fence.