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: Gate operator/Canadian Programming
Canadian radio-frequency laws require transmitter signals to “time-out” (or quit)
after several seconds of transmission — which may not be long enough for HomeLink
to pick up the signal during programming. Similar to this Canadian law, some U.S.
gate operators are designed to “time-out ...
Mazda 6 Owners Manual: Front door glass removal/installation
1. Operate the front door glass so that the distance from the top of the
front door glass to the upper part of the rear beltline molding is 210 mm
{8.3 in}.
2. Disconnect the negative battery cable.
3. Remove the front door trim.
4. Remove the hole cover.
5. Remove the screws.
6. Insert ...