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: Wheel hub, hub spindle removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (body side) and fix it to an appropri ...
Mazda 6 Owners Manual: Panel light control switch inspection
1. Connect the connector to the panel light control switch.
2. Connect the negative battery cable.
3. Measure the voltage at the panel light control switch using voltmeter.
When inspecting terminal B for continuity, disconnect the panel light
control switch connector.
4. If the value are ...