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: Information on Passenger Vehicle Tires
Please refer to the sample below.
1. TIN: U.S. DOT tire identification number
2. Passenger car tire
3. Nominal width of tire in millimeters
4. Ratio of height to width (aspect ratio)
5. Radial
6. Run-flat tire
7. Rim diameter code
8. Load index & speed symbol
9. Severe snow conditions ...
Mazda 6 Owners Manual: Front door lock actuator inspection
Door Lock Actuator
1. Disconnect the front door lock actuator connector.
2. Apply battery positive voltage to the front door lock actuator terminals
and inspect the operation of the front door lock actuator.
If not as specified, replace the front door lock actuator.
With double locking ...