If you work from home, how did you get your job? How many years of experience did you have in your field before getting your job?

My dream is to work from home!! I made it to final interviews for position, but they went with someone having more experience in the end. Any tips for securing at home positon?