Room lighting control based on COaP