Chapter 21 · Part IV, Projects: Intermediate
Chapter 21: Smart Home Wiring Basics
Quick answer
Smart home work splits into two categories: things that use existing wiring (smart bulbs, plug-in smart outlets) and things that need new wiring (in-wall smart switches, structured wiring for whole-house automation). The biggest gotcha: smart switches require a neutral wire at the box. Modern homes (built since ~2011) have neutrals at switches by code; older homes with switch-loop wiring don't. Without a neutral, you have three options: route a neutral, use a no-neutral smart switch (limited models), or use smart bulbs instead. For ecosystem choice, WiFi-only is fine for small setups; hub-based (Hubitat, Home Assistant) is better for serious automation.
A "smart home" can mean many things: a single smart bulb in a lamp, a fully integrated whole-house system with hundreds of devices, or anywhere in between. From a wiring perspective, smart home work splits into two categories: things that use existing wiring with no changes, and things that need new wiring or wiring infrastructure planned ahead.
This chapter covers the wiring side of smart home setups: what to plan for, where smart switches and outlets need extra wires, structured wiring for whole-house systems, and the practical tradeoffs between WiFi-only setups and properly wired ones.
This is the last chapter of Part IV. It's deliberately less project-step heavy than the previous chapters, because most smart home work isn't a discrete electrical project. It's more about the decisions you make around your existing electrical work to support smart features.
Estimated time: variable. Single device: 30 minutes. Whole-house planning: weeks of decisions and gradual installation. Cost: $20–100 per smart device. $200–2000 for hub-based ecosystems. Permit required: typically only if you're running new wiring as part of the smart install.
The Three Generations of Home Automation
Brief context, because it shapes the choices you'll make:
- First generation (X10, 1980s–2000s). Powerline-based control: signals piggybacked on your existing electrical wiring. Worked, but unreliable due to noise and interference. Mostly extinct now.
- Second generation (Z-Wave, ZigBee, mid-2000s–now). Dedicated radio mesh networks. Each device acts as a repeater, building a mesh that covers the house. Requires a hub. More reliable than X10 but adds complexity.
- Third generation (WiFi-direct, smart-bulb, app-controlled, mid-2010s–now). Devices connect directly to your home WiFi. No hub needed for individual devices, though some manufacturers (Hue, Lutron) still use hubs for their own ecosystems.
- Fourth generation (Matter / Thread, late 2020s). A new industry standard intended to unify the various ecosystems. Allows devices from different brands to interoperate through a common protocol. Adoption is gradual; most existing smart home devices don't support it yet, but new ones increasingly do.
For most homeowners now, the practical choice is between:
- WiFi-only ecosystems (TP-Link Kasa, Wyze, Wemo, Amazon-branded). Cheap, easy, no hub. Reliability depends on your WiFi.
- Hub-based ecosystems (Hubitat, Home Assistant, Hue, Lutron Caseta). More reliable, more expensive, longer learning curve.
If you're starting fresh and want a small smart home (a few outlets and a few bulbs), WiFi-only is fine. If you want a serious system with dozens of devices and complex automation, hub-based is the better path.
The Neutral Wire Issue
Modern smart switches and outlets need a neutral wire at the box. This is the most common pre-existing-wiring constraint that affects smart home upgrades.
Why? Smart devices need constant power to keep their radio active. A standard switch only sees power when it's "on" (the switch is closing the circuit between hot and load). When the switch is "off," there's no power to the switch itself.
A standard switch loop, common in older homes, has only two wires at the switch: a hot in, and a switched-output. No neutral. Without a neutral, the smart switch can't power its radio.
Code requirement (NEC 2011 onward): new construction must include a neutral wire at every switch location, specifically to enable smart switches and other devices that need it.
Older homes: depending on age, you may or may not have a neutral at every switch. To check:
- Kill power to the switch you're considering.
- Open the switch box.
- Look for the wires inside.
- Count: if you see only two conductors plus a ground (typical 14/2 cable), you don't have a separate neutral. If you see two cables (suggesting hot+neutral coming in, and switch leg going out), or a 14/3 cable, you probably do have a neutral.
If you don't have a neutral, options:
Option A: Choose smart switches that don't require a neutral.
Some smart switches use clever electronics to draw a tiny current through the load (the light) to keep their radio powered. They work, but with caveats: they don't work with low-wattage LED loads (the LED's resistance is too high to support the radio), and they sometimes cause the LEDs to glow dimly when the switch is "off."
Lutron Caseta is the standard for no-neutral smart switches. Their hub-based architecture means the switches themselves are simpler, and they work with most LED bulbs without the dim-glow issue.
Option B: Run a new neutral wire to the switch box.
A bigger project, but clean. You'd need to fish a new conductor from the panel (or from another box that has a neutral) to the switch. This is a real project, possibly requiring drywall work.
Option C: Use smart bulbs instead of smart switches.
The bulbs themselves have built-in radio. The wall switch becomes a "dumb" switch that should always stay on (so the bulbs always have power). You control the lights through the app or voice commands.
This works, but has a UX problem: people instinctively flip the wall switch off when leaving a room. If they do, the bulbs lose power and can't respond to commands. Some people put a piece of tape over the switch to prevent flipping, or replace the switch with a non-functional decorative cover.
Option D: Use a smart relay behind a dumb switch.
Sonoff and others sell small relay modules that fit inside the wall box behind the existing switch. The relay handles the smart functions while the existing switch still works as a manual override. Requires a neutral OR can use a "no-neutral" version. Compact, but installation requires comfort with small wire connections in tight spaces.
For most homeowners, Option A (no-neutral compatible smart switches) is the practical solution.
The Three-Way Smart Switch Problem
Three-way switching (Chapter 11) gets complicated with smart switches.
A standard three-way circuit has two switches that share travelers. There's no constant hot at either switch (the hot is sometimes at one, sometimes at the other, depending on switch position). This conflicts with smart switches that need a stable power feed.
Brands handle three-way smart switching differently:
- Lutron Caseta: uses a wireless companion switch. Only the master switch is wired into the circuit; the companion is battery-powered and communicates wirelessly. Works with no-neutral installations. Easiest to retrofit.
- GE/Cync, Leviton Decora Smart, TP-Link Kasa: use a wired companion. Both switches need power and connections, and the wiring follows traditional three-way principles. Sometimes requires a neutral at both locations.
- Inovelli Red Series: flexible. Works in three-way with another Inovelli switch as companion, or as a smart switch in a hybrid configuration.
If you're committing to three-way smart switches, choose a brand based on your existing wiring. For no-neutral installations, Lutron Caseta is hard to beat.
Structured Wiring (Whole-House)
If you're doing significant electrical work in a remodel or new construction, "structured wiring" means installing the cable infrastructure for a whole-house data and AV network at the time of construction, while walls are open.
The basics:
Central panel/hub location. Usually a closet or utility room near the middle of the house. This is where:
- Your internet modem and router live
- Network switch (for wired Ethernet)
- Smart home hubs (Hubitat, Lutron, etc.)
- Patch panel for terminating cables from various rooms
Cable runs to each room/area. Typically:
- Cat6 or Cat6a Ethernet to every room (TV locations, computer locations, smart device locations)
- Coax to every TV location (for cable/satellite if applicable)
- Speaker wire to ceiling speaker locations
- Optional: HDMI cables for distant TV locations
Access panels in each room. A small wall-mounted plate with Ethernet jacks, sometimes with HDMI and other connections.
For a homeowner doing this themselves during a remodel, the wiring is conceptually simple (it's just running more cable through walls) but tedious. Each cable run has the same considerations as electrical cable: drilling through framing, fishing through walls, securing properly.
For new construction or major gut renovations, structured wiring is dramatically cheaper to install while walls are open than to retrofit later. If you're doing a major remodel, plan for it.
WiFi Coverage and Mesh Systems
Most smart home devices need a WiFi connection. Spotty WiFi means unreliable smart home performance.
For most homes, a single router from the ISP doesn't cover the whole house. Symptoms of inadequate WiFi:
- Smart bulbs that frequently disconnect
- Cameras that buffer or freeze
- Devices that "appear offline" intermittently
- Slow response when you ask Alexa/Google to do something
Solutions:
- Mesh WiFi systems (Eero, Google Nest WiFi, Orbi, TP-Link Deco). Multiple access points working together to cover the whole house. Each unit communicates with the others, providing seamless coverage as you move around. $200–500 for a 3-unit kit.
- Wired access points. Even better: run Cat6 cable from your central network location to a few APs around the house, then attach wireless access points to each. Wired backhaul is more reliable than wireless mesh.
For a 2,000+ sq ft home, plan for at least 3 WiFi access points (or 1 router plus 2 mesh nodes) for adequate coverage. For multi-story or sprawling layouts, more.
Whole-House vs Room-By-Room Approach
Two general strategies for building a smart home:
Whole-house approach. Plan the whole system, install it all at once. Pros: integrated experience, consistent UX, fewer compromises. Cons: significant upfront cost ($1500–5000+), longer planning phase, all-or-nothing commitment to an ecosystem.
Room-by-room approach. Add smart features as you have specific needs. Smart bulbs in the bedroom, then a smart speaker, then smart switches for the porch, etc. Pros: lower cost per step, easier to evaluate what actually adds value, less risk of buying tech that ages out. Cons: less integrated, sometimes requires later replacement of devices that don't fit the eventual ecosystem.
For most homeowners new to smart home, the room-by-room approach is the sane starting point. Start with one or two specific things you want (smart lights at the front porch, a smart thermostat, voice assistants in the kitchen). See if you like the experience. Expand based on what actually adds value.
The biggest mistake we see: people invest in a complete ecosystem that they then never fully use, because the day-to-day value of "everything connected" is less than they expected. Start small.
What Smart Home Actually Costs
Rough numbers for a few common scenarios:
Tiny smart home (one room):
- 4–6 smart bulbs ($15–25 each): $80–150
- Smart speaker (Echo Dot, Nest Mini): $30–50
- Total: $100–200
Modest smart home (whole house):
- 8–12 smart switches ($30–60 each): $300–700
- 2–3 smart speakers: $100–200
- 4–8 smart bulbs (special locations): $80–200
- Smart thermostat: $130–250
- Smart locks (front door): $150–300
- Cameras (2–3): $100–300
- Hub (if used): $100–150
- Total: $1000–2000
Full smart home (extensive automation):
- All-in: $5000–10,000+
- Sometimes more for high-end systems with professional install
Plus ongoing costs: cloud subscriptions for some services ($5–15/month for cameras, $5–10/month for some ecosystems), occasional device replacement, increased internet bandwidth needs.
For most OKC homes, $1000–1500 buys a good "smart enough" experience without going overboard.
Privacy and Security Notes
Worth a brief mention:
Smart devices collect data: when you're home, when lights are on, what voice commands you give, sometimes video and audio. This data goes to manufacturer servers. Privacy implications vary widely between brands.
For the privacy-conscious:
- Local-control hubs (Home Assistant, Hubitat) keep most data on-premises.
- Lutron has a strong privacy reputation (their hubs work locally and minimize cloud dependence).
- Cameras with local recording (Reolink, Eufy, some Wyze) avoid uploading footage to manufacturer servers.
Avoid devices that require a continuous cloud connection, that don't have clear privacy policies, or that have a history of breaches.
Security considerations:
- Change default passwords on every device.
- Use a strong, unique password for your WiFi router.
- Keep devices' firmware updated.
- Consider a guest WiFi network specifically for IoT devices, isolated from your main network.
- Be cautious with no-name brands; some have shipped devices with hardcoded passwords or backdoor access.
When Smart Home Becomes a Pro Job
Some smart home installations cross over into "professional install" territory:
- Whole-house automation with custom programming (Crestron, Control4, Lutron RadioRA professional)
- Networking infrastructure (commercial-grade access points, Cat6a runs, structured wiring during construction)
- Integrated AV systems (multi-room audio with controllers, video distribution, etc.)
- Custom dashboards or programming for Home Assistant or similar
For these, professional installers (often called "low-voltage contractors" or "AV integrators") handle the work. Costs scale up considerably ($5,000–50,000+ for whole-house professional systems), but the result is dramatically more polished than DIY.
For most homeowners, the DIY scope (room-by-room with off-the-shelf devices) is plenty. The pro scope is for people who want a whole-house experience with no compromises.
What's Next
Part IV is complete. You now have a solid foundation in:
- Basic device replacement (Part III)
- Circuit extension and new circuits (Chapters 16–17)
- Specialized fans and outdoor work (Chapters 18–19)
- Hardwired appliances (Chapter 20)
- Smart home considerations (Chapter 21)
Part V starts the advanced projects. We'll cover sub-panels, 240V circuit additions, EV chargers, generators, panel replacement, and solar. These are the projects with the biggest scope, the longest installs, and the strongest recommendations to consider professional help where appropriate.
SPARK SHARK SIDE NOTE
Smart home is the area of residential electrical where the technology is changing fastest. A smart switch that's the best-in-class today may be obsolete in 5 years. For high-investment installations (whole-house systems, expensive ecosystems), choose products from companies likely to be around long-term and that support open standards. Lutron, Hue, and the Matter-supporting brands are reasonable bets. The bargain-basement no-name brands often disappear, taking their cloud services with them and turning your devices into junk.
PART V
The Projects: Advanced
Sub-panels, 240V circuits, EV chargers, generators, panel replacements, and solar. The serious work. Always pull a permit. Sometimes hire it out.
Chapters 22–27
In this part:
- 22 Sub-Panel Installation
- 23 Adding a 240V Circuit
- 24 EV Charger Installation
- 25 Generator Installation
- 26 Main Panel Replacement
- 27 Solar and Battery Systems
A NOTE BEFORE THIS PART
The Projects: Advanced, Read this before any chapter in Part V
YOU ARE ENTERING HIGHER-RISK TERRITORY
The chapters in Part V describe work that is significantly more dangerous than the projects in Parts III and IV. Service-entrance conductors that cannot be de-energized. 240V across two ungrounded conductors. Backfeeding that can kill utility workers. Battery storage that can thermally run away. Permit and inspection are required in essentially all OKC-metro jurisdictions for the work in Part V, regardless of the homeowner exemption.
Before any chapter in this part, you must:
- Have read and understood Part I (Foundations) and Part II (Permits, Code, and the Law).
- Have a permit on file for the work you are about to do, where required.
- Have verified that none of the disqualifying conditions listed in the chapter-opening warning apply to your home.
- Have re-read Chapter 3 ("Safety First") and Chapter 37 ("When to Call Spark Shark").
If at any point during one of these projects the work expands beyond what you planned, the wiring does not match what the chapter describes, or your gut tells you something is wrong: stop, leave the work in a safe state, and call a licensed electrician.
CODE CURRENCY, VERIFY BEFORE YOU WORK
This edition reflects the 2023 National Electrical Code, the Oklahoma Electrical License Act as in effect on [date of first printing], and Oklahoma City permitting procedures as in effect on the same date. Codes update on a three-year cycle. State law can change at any legislative session. Permit fees, phone numbers, office hours, and inspection scheduling change without notice.
Before you start any project in this book, verify three things:
- Which NEC edition is currently adopted in your jurisdiction (call your local building department).
- Whether the homeowner exemption still applies to your specific situation (Oklahoma Construction Industries Board, or an attorney).
- Whether your project requires a permit and inspection in your jurisdiction, and what the current fee is.
Updates and corrections, where available, are posted at SparkShark.com/handbook-updates.
Proceeding past this notice reaffirms the assumption of risk and release in the front matter.
FAQ
- How do I know if I have a neutral at my switch box?
- Kill power, open the box, look at the wires. If you see only black/red wires (and a ground), no white, you have a switch loop with no neutral. If you see white wires alongside the black/red, you have a neutral. Modern code (post-2011) requires neutrals at switches, so newer homes will have them; older homes often don't.
- Should I use WiFi smart devices or a hub-based system?
- WiFi-only (TP-Link, Wyze, Wemo) is cheaper and simpler, good for under a dozen devices. Hub-based (Hubitat, Home Assistant, Hue, Lutron) is more reliable and scales to dozens of devices but has a steeper learning curve. For a serious smart home, hub-based is the better long-term path.
- What's Matter and should I wait for it?
- Matter is a new industry standard (late 2020s) for cross-brand device interoperability. Adoption is gradual, most existing smart devices don't support it, but new ones increasingly do. If you're starting fresh, look for Matter-compatible devices to future-proof. If you already have a smart home, don't rip and replace, gradually add Matter devices as you upgrade.