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: Trunk side trim removal/installation
4SD
1. Remove the trunk end trim.
2. Remove the fasteners, then remove the trunk side trim.
3. Install in the reverse order of removal.
5HB
1. Remove the trunk end trim.
2. Remove the trunk side upper trim.
3. Remove the cargo hooks.
4. Remove the fasteners.
5. Pull the trunk side trim ...
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 ...