you could tag some conditional restrictions at the gates (i.e. opening hours) but tbh I dont think there are routing algorithms in use that actually process that data https://wiki.openstreetmap.org/wiki/Conditional_restrictions