changet getTimeSeries to actually check if a door has been opened.