Extracting room data for HAP

Try my code in the following post here and see if it returns the expected number of rooms