added a condition that allows to open the door only according to the opening time range associated to the user profile