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: No.6 windshield fogged
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunctions. If there
is a problem, check to make sure connectors, terminals and wir ...
Mazda 6 Owners Manual: Power brake unit removal/installation
1. Remove the master cylinder. (See MASTER CYLINDER REMOVAL/INSTALLATION.)
2. Remove the wiper arm. (See WINDSHIELD WIPER ARM AND BLADE
REMOVAL/INSTALLATION.)
3. Remove the cowl grille. (See COWL GRILLE REMOVAL/INSTALLATION.)
4. Remove the wiper motor. (See WINDSHIELD WIPER MOTOR REMOVAL/INSTAL ...