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: Windshield installation
Caution
To prevent the sealant from cracking or the glass from being
pushed out by air pressure if a door is closed, open all of the windows and
leave them open until the sealant has hardened.
1. Cut away the old sealant using a razor so that 1-2 mm {0.04-0.07 in}
thickness of sealant ...
Mazda 6 Owners Manual: Abs (abs/tcs) hu/cm system inspection
System Inspection
Preparation
1. Verify that the battery is fully charged. With the ignition switch on,
verify that the ABS and BRAKE system warning lights goes out after 2.4
seconds.
2. If the lights stays on after 2.4 seconds, the ABS (ABS/TCS) HU/CM
detects a failure. Follow the troubles ...