How a Smart Lighting System Works