Main

Documenting Your Smart Home’s Wiring: A Template for Low-Voltage and Mains Connections

A wiring register is the least glamorous artifact in a smart home, and the one you will reach for first when something stops responding. Not because it fixes anything, but because it tells you where to look. The failure mode it shortens is specific: a Zigbee router drops off the mesh, an ESPHome node stops answering, or a breaker trips and you cannot tell which devices went dark. Without a register, each of those becomes a physical search through boxes, closets, and panel labels. With one, you can localize the problem in minutes and decide whether it is a device, a bus, a circuit, or the hub.

This article gives you a template for that register. It is a maintenance document, not a compliance document. It records what exists so a future failure can be traced. It deliberately does not interpret electrical code, authorize mains work, or substitute for a qualified electrician. The boundary matters, and I will draw it explicitly below.

Why a register beats memory

Most installed smart homes accumulate devices faster than they accumulate documentation. A Zigbee sensor gets paired and forgotten. An ESPHome board gets flashed, mounted behind a fixture, and named something that made sense at the time. A breaker gets labeled in pencil, or not at all. Six months later, the person who installed it is the same person troubleshooting it, and the memory has decayed.

The register shortens three failure modes in particular:

  • A dead Zigbee router. If you know which devices were children of that router, you know which sensors to expect offline. Without that, you are guessing at the scope of the outage.
  • A mystery ESPHome node. If the register records the node name and the path to its YAML, you can find the configuration without scanning your network or opening a junction box.
  • An unlabeled breaker. If the register records the breaker label as observed, you can at least correlate a tripped circuit with the devices on it, even if the label is imperfect.

None of these require the register to be complete. A partial register that is accurate is more useful than a comprehensive one that is stale.

Scope boundary: what this template records and what it does not authorize

The register records observations. It does not perform work. That distinction is not pedantry; it is the difference between a document you can safely maintain and a document that implies you should be inside a panel.

Mains-side identification is a code matter. As one example, a New Hampshire excerpt of the 2023 NFPA 70 amendments requires that, where a premises wiring system has branch circuits supplied by more than one nominal voltage system, each ungrounded conductor of a branch circuit be identified by phase or line and system at all termination, connection, and splice points. The same excerpt states that the method of identification for conductors originating within each branch-circuit panelboard shall be documented in a readily available manner or permanently posted at each panelboard, and that the label shall not be handwritten. That is one state’s amendment text, not a universal rule, and it is cited here only to show why branch-circuit identification belongs to a qualified electrician and the local code, not to your register.

Your register should record the breaker label as observed. If the label says “Kitchen outlets” and you have reason to believe it also feeds the hallway, record the label and note the uncertainty. Do not invent a label. Do not relabel a panel yourself unless you are qualified and permitted to do so. The register is a map of what you found, not a correction of what an electrician installed.

The same boundary applies to de-energization. Before any mains work, the applicable lockout/tagout procedure and local requirements govern. This article does not provide that procedure, and the register does not replace it. If you need to open a mains enclosure to document a connection, that is electrician work.

The register schema

One row per device. The fields below are the minimum I would keep. Add columns as your installation demands, but resist the urge to make the register a second copy of your configuration files.

Field What it records Example value
Device ID A stable identifier you assign, independent of the vendor name ESP-OUT-01
Location Room and physical position, specific enough to find it Office, behind desk, lower outlet
Power source Mains circuit, low-voltage supply, battery, or PoE Mains, breaker labeled “Office outlets”
Bus / protocol Zigbee, Z-Wave, Wi-Fi, Ethernet, or other Wi-Fi (ESPHome)
Parent / coordinator The hub, coordinator, or router it depends on Zigbee2MQTT coordinator, or the Zigbee router it joined
Circuit / breaker label The label as observed, verbatim “Office outlets” (handwritten, pencil)
Firmware / config source Path or reference to the configuration, not a copy of it esphome/office-outlet.yaml
Notes Uncertainty, quirks, or known issues Breaker label may also cover hallway; unverified

The “firmware / config source” field is the one most people get wrong. It should point at the configuration file, not reproduce it. The configuration is the source of truth. A duplicated copy in the register drifts the moment someone edits the YAML, and then you have two documents that disagree and no way to tell which is current.

Worked hypothetical example

The rows below are fictional, constructed to show the shape of a filled register. They are not records of an actual installation.

Device ID Location Power source Bus / protocol Parent / coordinator Circuit / breaker label Firmware / config source Notes
ESP-OUT-01 Office, behind desk, lower outlet Mains, breaker labeled “Office outlets” Wi-Fi (ESPHome) Home Assistant local API “Office outlets” (printed label) esphome/office-outlet.yaml Relay restores to OFF on boot; intentional
ZB-SENS-04 Hallway, above door frame Battery (CR2032) Zigbee Zigbee2MQTT coordinator; joined via ZB-ROUTER-02 N/A (battery) zigbee2mqtt/configuration.yaml (device entry) Battery replaced 2025-09; monitor for dropout

Notice what is absent. The ESPHome row does not list GPIO pins or sensor calibrations; those live in the YAML. The Zigbee row does not reproduce the device’s MQTT topic; that is derived from the Zigbee2MQTT configuration. The register points; it does not duplicate.

Cross-referencing to existing configuration

The register’s value depends on pointing accurately at the configuration files that already exist. Three of them matter most in a local-first stack.

Home Assistant. Most configuration lives in the user interface, but some integrations and power-user features still require lines in configuration.yaml. The file lives in the configuration directory, which defaults to /config on Home Assistant OS. Your register should record the path to any YAML you maintain by hand, not the contents.

Zigbee2MQTT. Zigbee2MQTT is configured via a YAML configuration.yaml located in its data directory, and that file must be writable by the Zigbee2MQTT process because it can be updated at runtime. One operational note worth recording in your register’s notes column: Zigbee2MQTT must be stopped before manually editing configuration.yaml, or the changes will be overwritten. If you have ever edited that file while the service was running and wondered why your change vanished, this is why.

ESPHome. ESPHome is configured in YAML files. The register should record the path to each node’s YAML. If a node uses lambdas, note that ESPHome does not validate lambda expressions and copies them into the generated C++ code; when compilation fails, the generated source is at <NODE_NAME>/src/main.cpp. That path is worth recording next to the YAML path, because it is where you will look when a build fails and the YAML looks correct.

For a vendor-neutral way to describe what each device exposes, the W3C Web of Things Thing Description 1.1 is a useful reference model even if you never produce a formal TD. It separates textual metadata, interaction affordances (properties, actions, events), data schemas, security definitions, and links. You do not need to adopt the full specification to borrow its discipline: record what the device is, what it exposes, and how it is reached, as separate fields rather than one prose blob.

A repeatable procedure

The register is only useful if it matches reality. The procedure below is the cheapest way I know to get it there without opening anything energized.

  1. Photograph before you transcribe. Take a photo of each device in place, including the breaker panel label as it currently reads. Photos catch details that memory drops, and they are evidence you can revisit.
  2. Label the device, not the wire. A small adhesive label with your device ID on the device itself saves you from matching serial numbers later. Do not label mains conductors; that is electrician work.
  3. Transcribe one row at a time. Fill the register from the photos and the configuration files. Record the breaker label verbatim, including whether it is handwritten or printed.
  4. Verify by toggling one device at a time. For each controllable device, toggle it and confirm the expected physical result. This is the step that catches a register that has drifted from reality. Do it when the house is quiet, not during a party.
  5. Store the register where it survives a hub failure. A register that lives only inside Home Assistant is unavailable exactly when you need it most. Keep a printed copy and a copy on a phone or in a file sync service that does not depend on the hub.

Step four is the one people skip. It is also the one that converts a plausible document into a trustworthy one. A register that has never been verified is a hypothesis.

Maintenance cadence

Update the register when a device is added, moved, or re-flashed. Those are the three events that invalidate a row. A re-flash can change the node name or the configuration path; a move changes the location and possibly the circuit; an addition adds a row.

Keep a printed copy. This is not nostalgia. When the hub is down, the network is down, or a vendor cloud is unreachable, a printed register is the only document that still works. It also survives the failure mode where the person troubleshooting is not the person who built the system.

Graceful degradation: the register as recovery document

The register earns its keep precisely when the stack is degraded. Three scenarios are worth planning for:

  • Hub failure. Home Assistant is down. The register tells you which devices are local-first and can still be controlled by other means, and which depend on the hub. It also tells you the physical location of each device so you can fall back to a plain switch where one exists.
  • Network failure. Wi-Fi or Ethernet is down. The register distinguishes Wi-Fi devices from Zigbee and Z-Wave devices, which may still function through their coordinators if those are powered and reachable.
  • Vendor cloud failure. A cloud-dependent device stops responding. The register records whether the device is local-first or cloud-dependent, which determines whether the failure is expected or a surprise.

In each case, the register does not restore service. It tells you what you have and what still works. That is the difference between a graceful degradation and a blind one.

When a plain switch is the smarter choice

Not every circuit benefits from being smart. A mechanical timer or a plain switch is simpler, has no firmware, no network dependency, and no configuration to document. If a device’s only job is to turn a light on at dusk, a photocell or a mechanical timer may be the more reliable choice, and the register should record that decision so a future owner does not “upgrade” it back into complexity. The register is a record of tradeoffs, not just devices.

FAQ

Does this register satisfy code or inspection requirements?

No. It is a maintenance document. Code compliance and inspection are separate matters governed by your local authority and a qualified electrician. The register records what you observed; it does not certify anything.

Should I record the breaker label if I think it is wrong?

Record it as observed and note the uncertainty in the notes column. Do not invent a corrected label. If the label is genuinely wrong, that is a conversation with an electrician, not an edit to your register.

How often should I verify the register?

At minimum, after any device addition, move, or re-flash. A full toggle verification once a year is a reasonable cadence for a small installation. More often if you are actively changing things.

Can I keep the register inside Home Assistant?

You can, but do not keep it only there. The register is most valuable when the hub is down, which is exactly when a hub-hosted document is unavailable. Keep an offline copy.

What about devices I did not install?

Record them as observed, with a note that the installation history is unknown. An incomplete row with honest uncertainty is more useful than a confident row that is wrong.

For a broader look at auditing the small systems that quietly run your week, see How to Audit the Small Systems That Quietly Run Your Week. The wiring register is one input to that audit; the audit is where you decide which systems are worth keeping.