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: Driving on Uneven Road
Your vehicle's suspension and underbody can be damaged if driven on rough/uneven
roads or over speed bumps at excessive speeds. Use care and reduce speed when traveling
on rough/uneven roads or over speed bumps.
Use care not to damage the vehicle's underbody, bumpers or muffler(s) when driving ...
Mazda 6 Owners Manual: Remote handle lever removal/installation
4SD
1. To remove the remote wire, remove the trunk side trim.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
5HB
1. To remove the remote wire, remove the trunk side upper trim and trunk side
trim.
2. Remove in the order indicated in the table.
...