1. Disconnect the negative battery cable..
2. Remove the front map light..
3. Verify that the continuity between the sunroof switch terminals is as indicated in the table.

If not as indicated in the table, replace the sunroof switch.

Sunroof Switch Removal/InstallationAir Bag System [Two Step Deployment Control System]
Outline
The air bag system is a device that supplements the passenger restraint function
of the seat belts. The air bag system will not have the designed effect if the
seat belts are not worn properly.
The air bag system is composed of the following parts:
...
Rear Window Defroster/Outer Mirror Heater
Outline
Fogging is cleared from the rear window and outer mirror glass by heating
of the filament.
Structural view
System wiring diagram
Vehicles with full-auto air conditioner system
Vehicles with manual air conditioner system
Construction
Rear window defroster
...
Oil Pressure Switch Removal/Installation [Fw6 A EL, Fw6 Ax EL]
WARNING:
A hot transaxle and ATF can cause severe burns. Turn off the engine and wait
until they are cool.
Always wear protective eye wear when using the air compressor. If the air
compressor is used, any particles of dirt or soiling could spatter and get into
the eyes.
...