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: Dtc c1145, c1155, c1165, c1175
Caution
When attaching the tester lead to the DSC HU/CM connector the SST
(49 G066 004) must be used.
Diagnostic procedure
...
Mazda 6 Owners Manual: Windshield Defrosting and Defogging
Press the windshield defroster switch. In this position, the outside air position
is automatically selected, and the air conditioner automatically turns on. The air
conditioner will directly dehumidify the air to the front windshield and side windows.
Airflow amount will be increased.
WARNING
...