Tech Explained

Smart Home Wiring: Prewire, Neutrals, Networks and Local Control

How a smart home really works under the drywall: the four layers, neutrals at switches (NEC 404.2(C)), structured wiring and racks, Matter and Thread, local vs cloud control, and retrofit options.

Key takeaways
  • Every smart home has four layers: power, network, a controller, and the things you touch.
  • The NEC generally requires a neutral at lighting switch locations in habitable rooms, halls, stairs and baths, and many smart switches need one.
  • Wired Ethernet, ceiling access points and a rack with battery backup make everything else more reliable.
  • Matter devices can work locally over Wi-Fi, Thread or Ethernet; remote control still needs an internet-connected hub at home.
  • Before choosing a platform, ask what keeps working without the internet and who will support it.

The smart home part you see is the easy part: a keypad, an app, a voice. What makes it reliable is hidden in the walls. This guide walks through what an electrician thinks about when planning one, so you can ask good questions whoever you hire. Product names are examples only; we’re brand-neutral and not affiliated with any of them.

The four layers

  1. Power. Circuits, the panel, switch boxes and the neutral conductor that keeps smart devices awake.
  2. Network. Ethernet cable, Wi-Fi access points, Power over Ethernet (PoE) and sometimes fiber to outbuildings.
  3. Control. A hub, processor or app that holds the schedules, scenes and logic.
  4. Interfaces. Keypads, touch screens, phones, remotes and voice.

When one layer is weak, the whole system feels flaky. Most “my smart home doesn’t work” calls turn out to be Wi-Fi or power, not the smart device.

Neutrals at switch boxes

Old-style switches just interrupt the hot wire, so many older switch boxes have no neutral. Smart switches usually need a little power all the time to stay connected, and they get it from the neutral.

Paraphrasing NEC 404.2(C): a neutral is generally required at switch locations that control lighting in bathrooms, hallways, stairways and habitable rooms. There are exceptions, for example where the wiring is in a raceway that can take a neutral later, where the box is accessible from above or below, or where the switches control receptacles. Electronic switches that need standby power must have the neutral connected. For replacing a switch in an older home, there’s a limited exception when a neutral can’t be brought in without removing finished walls or ceilings, with caps on how many such devices go on one circuit.

The practical takeaway: in new work, put a neutral in every switch box, even where it isn’t strictly required, and use deep or multi-gang boxes where keypads will go.

Structured wiring and the rack

  • Home runs. Run each cable from its device back to one central spot, rather than daisy-chaining.
  • Cat 6 or better to TVs, desks, cameras, access points, touch screens and door stations. See how PoE works.
  • Ceiling access points on each floor beat one router in a closet.
  • The rack gets its own circuit, airflow, surge protection and a UPS (battery backup) so a short blip doesn’t reboot the house.
  • Separation. The NEC generally keeps low-voltage and communications cables apart from power wiring, in separate boxes or with a listed barrier.
  • Labels and a map. Label both ends of every cable and keep a simple drawing.
  • Pathways for later. A conduit or pull string from the rack to the attic is cheap insurance.

How long will a UPS keep the rack running?

The same math used for home batteries works for a rack UPS. A small UPS might store a fraction of a kWh; enter its usable energy and the rack’s average watts.

Battery run timeUsable energy divided by your average load, less the reserve you keep for the next outage.

An estimate with no solar recharging. Cold weather, battery age and inverter losses shorten real run time a little.

Wireless: Wi-Fi, Thread and Matter

Matter is an open, IP-based smart home standard backed by many companies. Per the Connectivity Standards Alliance, Matter devices run over Wi-Fi, Thread or Ethernet, use Bluetooth LE for setup, and can be controlled locally on your home network. Controlling them while you’re away needs an internet-connected controller at home. Thread is a low-power mesh network for small devices like sensors and locks, and it needs a Thread border router, which is often built into a smart speaker or hub.

Some lighting systems also use their own dedicated radio networks, which can tie into a larger system.

Local vs. cloud

Local control means devices talk to a controller inside the home; cloud control means commands travel to a company’s servers and back. Local usually keeps working when the internet goes down and keeps more data at home. Cloud often makes remote access easier. Most systems are a mix.

Voice is a good example of the mix. Josh.ai, a platform for professionally integrated homes, says its Josh Core processor handles device control and most processing locally, while speech after the wake word goes through encrypted cloud speech recognition before the command is processed locally. Home Assistant describes itself as open-source home automation that puts local control and privacy first. Consumer ecosystems like Apple Home, Google Home and Amazon Alexa each have their own privacy settings worth reading.

Retrofitting a finished home

  • Replacement smart switches, including some made for boxes without a neutral.
  • Matter and Thread devices plus a border router.
  • A couple of wired access points, fed through the attic or crawlspace.
  • A smart panel or energy monitor.
  • Battery-powered shades and sensors where wiring would be too disruptive.

Questions to ask before you choose

  • What keeps working without the internet?
  • Where is voice and video processed, and can I delete history?
  • Who programs and supports it, and what if they move on?
  • Any yearly license or subscription fees?
  • What does it need from my wiring and network?
  • Will I get passwords, labels and a wiring map at the end?

Planning a project? Our smart home & automation page shows how we help, with a whole-home diagram and a prewire checklist.

Sources and further reading

  1. EC&M, NEC requirements for switches (404.2(C) neutral)
  2. Connectivity Standards Alliance, Matter FAQ
  3. Josh.ai, Privacy
  4. Josh.ai, Josh Core
  5. Home Assistant
  6. NFPA free access to codes and standards (read the NEC online)

Local rules decide. These articles explain general ideas and point to the code sections we use. They are not legal or engineering advice and don’t replace the code itself. California adopts the NEC with its own amendments, cities and counties can add more, and the local inspector (the AHJ, or authority having jurisdiction) has the final say on any job. Read the code free at NFPA’s free access page.