Data flow of smart lights