Centralized lighting control with luminaire-based occupancy and light sensing