A system that keeps the building climate within a specified range, provides lighting based on an occupancy schedule, and monitors system performance and device failures