Controller for motorized changeover switches