The leaving home light turns on the lights when the transmitter unlock button is pressed while away from the vehicle.
The following lights turn on when the leaving home light is operated.
Low beams, Parking lights, Taillights, License lights.
To turn on the lights
When the ignition switch and the headlight switch are in the following conditions, the headlights will illuminate when the transmitter unlock button is pressed and the vehicle receives the transmitter signal.
The headlights turn off after a certain period of time has elapsed (30 seconds).
or
or 

NOTE
position, the headlights turn
Coming Home Light
Headlight Leveling (Some models)Mazda 6 Owners Manual: Power Window Lock Switch
This feature prevents all power windows from operating, except the driver's power
window. Keep this switch in the locked position while children are in the vehicle.
Locked position (button depressed):
Only the driver's power window can be operated.
Unlocked position (button not depressed):
All ...
Mazda 6 Owners Manual: Bonnet switch inspection
Note
Bonnet switch has a built-in bonnet lock.
1. Open the bonnet.
2. Disconnect the negative battery cable.
3. Remove the radiator grille.
4. Disconnect the bonnet switch connector.
5. Check the continuity between the bonnet switch terminals A and B using an
ohmmeter.
If there is ...