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: No.6 windshield fogged
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunctions. If there
is a problem, check to make sure connectors, terminals and wir ...
Mazda 6 Owners Manual: Cruise actuator inspection
1. Disconnect the cruise actuator connector.
2. Measure the voltage, continuity and resistance at the cruise actuator
terminals as indicated below.
If not as specified, inspect the parts listed under Action.
If the parts and wiring harnesses are okay but the system still does not
work pr ...