electrical
Sunroof Switch
for 2024 Tesla Model S Long Range Dual Motor AWD · AWD
Editorial review:Chris Hackleman — Master Technician · 20+ years
Difficulty
Easy
Time
30 min
Tools
4
Steps
7
✓Expert-verified. Personally reviewed and approved by OLP's master technicians (Chris Hackleman — 20+ years each). Always follow the vehicle's factory service information and torque specs.
Replacement of the overhead sunroof/dome console switch assembly on a 2024 Model S Long Range. The switch is integrated into the front overhead console and is retrieved by carefully releasing the headliner-mounted console trim.
Warnings
⚠The Model S headliner is a one-piece molded panel and is easily creased or stained. Do not lean on it or pry against it with bare metal tools.
⚠Aluminum body construction — do not strike trim with a hammer or use steel pry bars against painted/structural surfaces.
ℹ️Even though this is a low-voltage job, the overhead console area on Model S contains airbag-related wiring and microphones routed through the headliner. Do not yank on harnesses.
⚠️If you encounter any orange cabling at any point, STOP. Orange = high voltage and is lethal. This job should not expose any HV components.
Tools required
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 console sunroof/dome switch assembly × 1 — Manufacturer-specified Model S overhead console switch — 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 the vehicle in P, and engage the parking brake.
- Exit ALL doors with the key fob/phone key carried away from the vehicle. Wait at least 2 minutes for HV systems to fully de-energize, even on this non-HV job.
- Open the frunk and remove the nose cowl/scuff panel to access the 12V battery. Disconnect the 12V low-voltage battery negative terminal and isolate it so it cannot contact the post.
- 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.
- Confirm the replacement switch matches the VIN-correct part — Model S overhead console switches have changed configuration across model years.
- Have the new switch staged and a clean work surface ready; wear clean gloves to avoid marking the headliner.
Procedure
- 1Identify the switch locationLocate the overhead console at the front of the headliner, between the visors. The sunroof switch is integrated into this console along with the dome lighting controls.
- 2Release the overhead console trimUsing a non-marring plastic trim tool, gently work along the perimeter of the overhead console bezel. Release the retaining clips by pulling straight down — do not twist or pry against the headliner fabric. Support the console as the last clip releases so it does not hang from the wiring.⚠Headliner fabric on Model S will permanently show indentations from hard tools. Pad the trim tool with tape or cloth.
- 3Disconnect electrical connectorsWith the console lowered, identify the connector(s) feeding the switch assembly. Press the locking tab on each connector and pull straight off — do not pull on the wires. Note connector orientation for reinstallation.
- 4Remove the switch from the console housingThe switch module is retained to the console body by integrated plastic clips (and on some builds, small screws hidden behind the bezel). Release the clips with a small flat tool and separate the switch from the housing. If fasteners are present, retain them for reuse.ℹ️Do not force the switch out — if it does not come free, recheck for hidden retainers rather than breaking tabs.
- 5Install the replacement switchSeat the new switch into the console housing until all clips fully engage. Confirm the switch sits flush with the bezel and the buttons travel freely without binding.
- 6Reconnect electrical connectorsReattach all connectors to the new switch. Ensure each connector clicks fully home — partial seating will cause intermittent operation that the car may log as a fault.
- 7Reinstall the overhead consoleAlign the console with the headliner opening and press evenly along the clip locations until fully seated. Verify there are no gaps and the console sits flush with the headliner.
Reassembly
- Reconnect the 12V battery negative terminal. Torque the battery terminal bolt to the verified spec — do not overtighten.
- Reinstall the frunk nose cowl/scuff panel.
- Close the frunk and allow the vehicle to wake fully (touchscreen boots, exterior lights cycle).
- Re-pair the phone key/fob if the vehicle prompts after the 12V disconnect.
Verification
- Cycle the sunroof switch through Vent, Comfort, and Full Open positions (as applicable to this Model S configuration) and confirm the panoramic roof responds correctly in both directions.
- Confirm dome/reading lights and any other functions integrated into the same console operate normally.
- Check the touchscreen Service menu for any new alerts. No sunroof or BCM-related faults should be present.
- Inspect the headliner around the console for any creases, gaps, or loose clips.
- Note: Panoramic roof track lubrication and motor wear are common Model S failure points — if the roof moves slowly, binds, or makes noise after the switch replacement, the issue is mechanical (track/motor), not the switch.
- Battery terminal bolt torque reference applied during reconnection.
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 →