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: Discharge headlight service warnings
Discharge headlight bulb service warnings
To prevent electrical shock when replacing the discharge headlight bulb,
dry hands thoroughly, and carry out work in an area out of rain.
When the light switch is on, approx. 25,000 V of high voltage passes
through the discharge headlight bulb so ...
Mazda 6 Owners Manual: Vehicle speedometer sensor (vss) inspection
Visual Inspection
1. Remove the VSS. (See VEHICLE SPEEDOMETER SENSOR (VSS)
REMOVAL/INSTALLATION.)
2. Make sure that the sensor is free of any metallic shavings or particles.
If any are found on the sensor, clean them off.
3. Install the VSS. (See VEHICLE SPEEDOMETER SENSOR (VSS)
REMOVAL ...