Depreciation for rental home

rental property used as rental in past.  used as main home for past few years.  Do I depreciate the years when it was my main home?  If not, do I have 3 more years to depreciate now that it is a rental home again?