Using a real-time location system, the hospital environment is controlled locally. By categorizing individuals detected at different locations, the proper control may be provided to enhance energy savings and maintain a comfortable patient environment without sacrificing safety. By altering the environment within a room for patients and not staff and/or based on the type of patient, more optimized and localized control may be provided, such as implementing a number of air changes per hour appropriate for detected patients within rooms.