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 key cylinder removal/installation
1. Remove the front door unit.
2. Remove the cover, then remove the bolt.
3. For protector-equipped vehicles, pull out the protector tab from the latch
and remove the protector.
4. Disconnect the rod.
5. Remove the front outer handle.
6. Turn the key cylinder in the direction indicated by ...
Mazda 6 Owners Manual: Liftgate adjustment
1. Measure the gap and height between the liftgate and the body.
2. If not as specified, loosen the liftgate hinge installation bolts or the
liftgate striker installation screws, and reposition the liftgate.
Clearance
a: 3.0-7.0 mm {0.12-0.28 in}
b: -1.0-3.4 mm {-0.04-013 in}
c: 2.8-5.2 mm ...