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: Front and rear fog light switch inspection
Light switch LH side
1. Remove the light switch. (See LIGHT SWITCH REMOVAL/INSTALLATION.)
2. Inspect for continuity between the light switch terminals using an
ohmmeter.
If not as specified, replace the light switch.
Light switch RH side
1. Remove the light switch. (See LIGHT SWITCH ...
Mazda 6 Owners Manual: Pcv valve inspection
1. Disconnect the negative battery cable.
2. Remove the intake maniforld.(see INTAKE-AIR SYSTEM REMOVAL/INSTALLATION.)
3. Remove the PCV valve.
4. Blow through the valve and verify that air flows as specified.
If not as specified, replace the PCV valve.
Specification
...