An automated lighting and building control system that is operative to control a large number of lights and to provide control to other control systems, such as security systems, powered window coverings, and HVAC systems, within a geographic area based on a large amount of input data, including day light conditions, occupancy data, security information, HVAC data, etc. The savings generated by the control system are measurable and verifiable and enable the operator of the controlled space to analyze exactly how the controlled space is being utilized. To improve the quality of the overall control system, the present invention utilizes a universal occupancy adapter for converting any motion detector for a security system, into a component of the lighting / building controller. Further, the entire system can be controlled remotely over the Internet without the need for special software.