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: Master cylinder disassembly/assembly
Caution
If the master cylinder body is damaged, replace the unit as a
component. When securing the master cylinder in a vise, tighten only the
flange of the master cylinder.
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Stop ...
Mazda 6 Owners Manual: Jam-safe Moonroof
If a person's hands, head or an object blocks the moonroof while it is closing,
the moonroof will stop and move in the reverse direction.
WARNING
Make sure nothing blocks the moonroof just before it reaches the fully closed
position: Blocking the moonroof just before it reaches the closed posi ...