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: Manual Transaxle Shift Pattern
The shift pattern of the transaxle is conventional, as shown.
Depress the clutch pedal all the way down while shifting; then release it slowly.
Your vehicle is equipped with a device to prevent shifting to R (reverse) by mistake. Push the shift lever downward and shift to R.
...
Mazda 6 Owners Manual: Diagnostic assist function
Structural View
Switch location
LCD Inspection
1. With audio on, first press the POWER button, then simultaneously press the
SEEK button (upper) for approximately 1 second.
2. Inspect the LCD according to the following table:
3. Turn the audio off or the ignition switch to the LOCK posi ...