How many different APIs do you need to turn on a light?