The coming home light turns on the headlights (low beams) when the lever is operated.
To turn on the lights
When the lever is pulled with the ignition switched to ACC or OFF, the low beam headlights turn on.
The headlights turn off after a certain period of time has elapsed after the doors are closed.

NOTE
Flashing the Headlights
Leaving Home LightMazda 6 Owners Manual: Rear crossmember removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (axle side) and fix it to an appropri ...
Mazda 6 Owners Manual: Child-Restraint Precautions
Mazda strongly urges the use of child-restraint systems for children small enough
to use them.
You are required by law to use a child-restraint system for children in the U.S.
and Canada. Check your local and state or provincial laws for specific requirements
regarding the safety of children ...