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: Engine coolant temperature (ect) sensor removal/installation
Warning
When the engine is hot, it can badly burn. Turn off the engine and
wait until it is cool before removing the ECT sensor.
1. Drain the engine coolant. (See COOLING SYSTEM SERVICE WARNINGS.)
2. Disconnect the ECT sensor connector.
3. Remove the ECT sensor.
4. Install in the reve ...
Mazda 6 Owners Manual: Service warnings
HANDLING REFRIGERANT
Avoid breathing air conditioning refrigerant or lubricant vapor.
Exposure may irritate eyes, nose and throat. Also, due to environmental
concerns, we urge use of recovery/recycling/recharging equipment when
draining R-134a from the air conditioning system. If accide ...