electrical
Sunroof Switch
for 2024 Tesla Model Y Long Range Dual Motor AWD · AWD
Editorial review:Chris Hackleman — Master Technician · 20+ years · Jeff Moore — Master Mechanic · 20+ years
Difficulty
Easy
Time
30 min
Tools
6
Steps
8
✓Expert-verified. Personally reviewed and approved by OLP's master technicians (Chris Hackleman & Jeff Moore — 20+ years each). Always follow the vehicle's factory service information and torque specs.
Replacement of the overhead sunroof/console switch assembly on a 2024 Model Y Long Range. Note: most 2024 Model Y vehicles ship with a fixed glass roof and no operable sunroof switch — verify the vehicle actually has the switch in question before ordering parts.
Warnings
⚠️Tesla airbag wiring (yellow connectors) runs through the headliner area. Do NOT pull on or pinch any yellow harness — accidental airbag deployment can cause severe injury.
⚠The headliner on Model Y is a single molded panel and is easily creased or torn. Do not flex it more than necessary — work only in the immediate area of the switch.
⚠Most 2024 Model Y vehicles have a fixed panoramic glass roof with no operable sunroof. Confirm the vehicle actually has a functional sunroof switch (not just a dome/map light or SOS button) before proceeding.
ℹ️Aluminum body panels — never strike trim with a hammer. Use steady hand pressure with plastic tools only.
Tools required
Plastic trim removal tool setEssential
As an Amazon Associate and Autel/ANCEL partner, OLP earns from qualifying purchases — how we link. This never changes the specs we publish.
Parts
- Overhead switch / control module assembly × 1 — Manufacturer-specified overhead switch module — match by VIN
As an Amazon Associate and Autel/ANCEL partner, OLP earns from qualifying purchases — how we link. This never changes the specs we publish.
Preparation
- Park on level ground, place in P, engage parking brake.
- Exit ALL doors with the key fob away from the vehicle. Wait at least 2 minutes for HV systems to fully de-energize, even on this non-HV job.
- Disconnect the 12V low-voltage battery. On 2024 Model Y, the 12V (lithium-ion) battery is accessed under the rear seat / behind a service panel — refer to architecture notes. Torque the terminal back later to spec.
- Do NOT touch, cut, or pierce any orange cable — these are high-voltage and lethal.
- If at any point you encounter an orange cable, an HV component, or are unsure if a system is de-energized: STOP and consult a Tesla-certified technician.
- Verify the vehicle is actually equipped with an operable sunroof switch (vs. fixed glass roof) and that the failure is the switch itself, not the motor or controller.
- Have the replacement switch on hand and confirm connector keying matches the original.
Procedure
- 1Confirm switch location and functionLocate the overhead switch in the headliner console area. Press it and listen/observe for any motor activity. If nothing happens, the issue may be the switch, harness, or actuator — diagnostics should be done before replacement.
- 2Allow capacitors to dischargeAfter disconnecting the 12V battery, wait at least 2 minutes before touching any interior electronics to allow body control modules to fully power down.
- 3Release the switch bezelUsing a non-marring plastic pry tool, gently release the switch/bezel assembly from the headliner trim. Tesla overhead switches are typically retained by integrated plastic clips. Work slowly around the perimeter — do not pry against the soft headliner fabric, only against the rigid bezel edge.
- 4Lower the switch assemblyOnce clips release, carefully lower the switch assembly just enough to access the rear connector. Do not pull hard — there is limited harness slack at the headliner.
- 5Disconnect the harnessDepress the connector locking tab and disconnect the wiring harness from the switch. Inspect connector pins for corrosion, bent terminals, or signs of moisture intrusion. Photograph orientation for reassembly reference.
- 6Compare old and new switchVerify the replacement switch matches the removed unit in connector pin count, button layout, and bezel shape. A mismatched switch will not be recognized by the body controller.
- 7Connect the new switchPlug the harness connector into the new switch until the locking tab clicks fully home. A partial connection is a common cause of intermittent function.Torque specConnector Screws4 Nm (3 lb-ft)
- 8Seat the new switch into the headlinerAlign the new switch assembly with the headliner opening and press evenly around the bezel until all retention clips engage. Confirm it sits flush — uneven seating indicates a missed clip or a trapped wire.
Reassembly
- Verify no wiring is pinched between the switch body and the headliner.
- Reconnect the 12V low-voltage battery. Torque the negative terminal bolt to Battery Terminal Bolts spec (6.0 Nm / 4.0 lb-ft) — do not overtighten.
- Close all doors, re-enter the vehicle with the key fob, and allow the MCU to fully boot before testing.
Verification
- Operate the switch through all functions (open, tilt, close, vent — whichever apply to this vehicle's roof). Confirm smooth operation in both directions.
- If the sunroof has a one-touch / pinch-protection feature, verify it still auto-reverses on obstruction. If it does not, a re-initialization may be required — refer to the Tesla Service Manual for the specific calibration procedure on this VIN.
- Check the touchscreen for any new fault messages related to the roof or BCM.
- Verify the headliner bezel sits flush with no gaps, squeaks, or rattles when the door is closed firmly.
- Unrelated but worth checking while the 12V was disconnected: confirm tire rotation interval (Tesla recommends every 6,250 mi on Model Y due to high curb weight and instant torque) and brake fluid age (Tesla recommends replacement every 2 years).
Related trouble codes on this vehicle
Codes that commonly send this job to the bay — tap one for symptoms, causes, and diagnostic steps.
B0240Sunroof Motor CircuitB0241Sunroof Position Sensor CircuitU0160Lost Communication with Sunroof Control ModuleU0260Lost Communication With Sunroof Control Module
Chasing one of these codes and not sure which part is guilty? Ask a master mechanic about YOUR car →