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: Meters and Gauges
Instrument Cluster Type A
Type B
Steering Switch
1 - Speedometer 2 - Odometer, Trip Meter and Trip Meter Selector 3 - Tachometer
4 - Dashboard Illumination 5 - Trip Computer and INFO Switch 6 - Engine Coolant
Temperature Gauge 7 - Fuel Gauge 8 - Outside Temperature Display 9 - Cruise
...
Mazda 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 ...