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: Canceling Operation of Blind Spot Monitoring (BSM)
The Blind Spot Monitoring (BSM) system can be set to inoperable.
When the Blind Spot Monitoring (BSM) is set to inoperable, the Blind Spot Monitoring
(BSM) and Rear Cross Traffic Alert (RCTA) systems are turned off and the Blind Spot
Monitoring (BSM) OFF indicator light in the instrument cluste ...
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 ...