A smart home controls lighting according to given scenarios, guided by the readings of sensors, such as light sensors, motion sensors, etc.