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 door speaker removal/installation
1. Disconnect the negative battery cable.
2. Remove the front door trim.
3. Remove in the order indicated in the table.
4. Install in the reverse order of removal.
Front Door Speaker Installation Note
Attach the speaker with the wiring harness placed in the groove of the door
unit panel.
...
Mazda 6 Owners Manual: Audio control switch removal/installation
Note
The audio control switch and the cruise control switch use a
common connector.
1. Disconnect the negative battery cable.
2. Remove the driver-side air bag module. (See DRIVER-SIDE AIR BAG MODULE
REMOVAL/INSTALLATION.)
3. Remove the steering wheel.
4. Remove in the order indicated ...