When it is dark enough outside, the headlamps come on automatically.
There is a light sensor located on top of the instrument panel. Make sure it is not covered, or the headlamps will come on when they are not needed.
The system may also turn on the headlamps when driving through a parking garage or tunnel.