It detects the ambient brightness, and if a home automation rule allows it, it automatically manages the lighting.