Automation for doors and gates