Your First Zigbee Devices: A Smart Plug, a Temperature Sensor, and a Motion Sensor

Your First Zigbee Devices: A Smart Plug, a Temperature Sensor, and a Motion Sensor

Module 9 · Lesson 6

With ZHA or Zigbee2MQTT installed and confirmed stable, it's finally time to pair real devices. This lesson walks through three specific starter devices, one at a time, deliberately, building the habits that carry through every device you'll ever add to this mesh.

Why these three, specifically

A smart plug, a temperature sensor, and a motion sensor cover the three fundamental device categories you'll use throughout this course: a controllable router device, a battery-powered end device that measures something continuously, and a battery-powered end device that reports an event. Mastering pairing and setup for these three gives you the exact pattern for essentially every other Zigbee device you'll add later, from door sensors to smart bulbs.

Physical preparation and a factory reset

Unbox each device and check its manual for a factory reset procedure, usually holding a button for several seconds until an LED blinks a specific pattern. Even brand new devices genuinely benefit from this step, it guarantees a clean pairing state rather than leftover data from a factory test. Install fresh batteries in the sensor and motion sensor now, low battery voltage is a surprisingly common cause of pairing failures overall.

Router versus battery-powered device

Your smart plug is mains-powered, meaning it acts as a router, extending your mesh's range for other devices, exactly as Lesson 1 explained. Your temperature and motion sensors are battery-powered end devices, they don't route traffic for others, and they sleep between reports to conserve battery life. This distinction matters for where you'll eventually place each device, covered fully in Lesson 8's mesh strategy.

Where to pair: at your desk or in the final location

For this first pairing, stay close to your coordinator, at your desk or wherever your mini PC lives, rather than immediately walking to a device's final installed location. This isolates any pairing problem to the pairing process itself, not a range issue. Once paired and confirmed working, moving a device to its permanent spot is a separate, later step this lesson doesn't cover yet.

Pairing in ZHA

Open the ZHA integration page, click Add Device, then put your device into pairing mode per its manual, usually a button press or hold. ZHA shows a live progress indicator while searching, and the device appears in your device list within seconds to a minute once found. Confirm its detected device type looks correct, a plug shouldn't show up as a sensor.

Pairing in Zigbee2MQTT

Open the Z2M panel, enable permit_join briefly from the devices tab, then put your device into pairing mode. Watch the panel's log for a message confirming the device joined and was correctly identified against Zigbee2MQTT's device database. Turn permit_join back off immediately once the device appears, exactly as Lesson 5 emphasized.

If a device won't pair

Move it physically closer to the coordinator, within a few feet if needed. Repeat the factory reset procedure, some devices need it done a second time. Confirm fresh batteries in a sensor. And double-check pairing mode was actually triggered correctly, the LED pattern in the manual is the definitive signal, not a guess.

Example names (not manufacturer names)

Rename each device immediately after pairing, using this course's naming pattern rather than a generic manufacturer default. Something like Office Desk Plug, Office Temperature, and Office Motion works well as a starting example, Lesson 7 covers naming conventions in full depth.

Entities: what you'll see in Home Assistant

The plug exposes a switch entity, and often a power sensor entity too. The temperature sensor exposes a temperature entity, and usually humidity and battery entities as well. The motion sensor exposes a binary motion entity plus a battery entity. Seeing several entities per device is normal, not a sign anything's misconfigured.

Testing after each device

Toggle the plug on and off from Home Assistant's dashboard and confirm it physically responds. Watch the temperature entity for a plausible current reading. Wave a hand in front of the motion sensor and confirm the binary entity flips. Test each device individually, right after pairing it, before moving to the next one.

What to record after each device

Device name, device type, and today's date, in your Zigbee notebook's device registry, covered in full at the end of this lesson. This becomes the single reference you'll thank yourself for as the mesh grows to dozens of devices over the coming modules.

What we're not doing yet

No automations, no dashboards beyond the default entity cards, no area assignment yet, those come in Lesson 7 and later modules. This lesson is purely about a clean, confirmed pairing for three devices, nothing more.

In detail: three devices, step by step

Plug first, since it's mains-powered and easiest to pair reliably. Reset it, put it into pairing mode, confirm it joins, rename it, test it, record it. Temperature sensor second, same sequence. Motion sensor last, same sequence again. By the third device, the whole pattern should feel routine rather than effortful.

Permit join: network security

Both ZHA and Zigbee2MQTT default to permit_join off between pairing sessions, keeping your network closed to unwanted additions. Enable it only when actively pairing a specific device, and confirm it's back off once done, this three-device session included.

Exercise: pair the three devices in sequence

Follow this lesson's step-by-step section for all three devices, in order, testing and recording each one before starting the next. Resist pairing all three simultaneously, even though it feels faster, the one-at-a-time approach makes troubleshooting dramatically simpler if anything goes wrong.

Restart test: a habit for the whole course

Once all three devices are paired and tested, restart Home Assistant once more and confirm all three entities reconnect and report correctly afterward. This restart-test habit, established for ZHA and Zigbee2MQTT installation in Lessons 4 and 5, now extends to actual devices and continues for the rest of this course.

Smart home notebook: what to record today

Beyond the per-device entries already covered, note today's date as the day your first real Zigbee devices went live, a small milestone worth marking in this course's ongoing notebook.

The calm path versus forum shortcuts

It's tempting to skip renaming, testing, and recording each device to save time, especially on device three when the novelty's worn off. Don't, these small habits compound, and skipping them now means retrofitting a messy, undocumented network later, exactly the situation this course's calm, deliberate approach is designed to avoid.

Key takeaways

Pair devices one at a time, testing and recording each before the next.

Factory reset and fresh batteries resolve most first-attempt pairing failures.

Rename devices immediately, don't leave manufacturer default names in place.

Run the restart test after all three devices are paired and confirmed.

With three real devices paired, tested, and recorded, Lesson 7 covers naming conventions and Home Assistant areas in full, turning this small starter set into an organized foundation.

Zigbee registry: a notebook template

Use a simple table with columns for device name, device type, pairing date, and notes, one row per device, starting with today's three. This registry grows alongside your mesh through the rest of this module and course, and it's the single reference that makes troubleshooting, replacing, or expanding your network dramatically easier months from now.

A real story: the motion sensor that wouldn't join

A reader in this course's community paired their smart plug and temperature sensor without any trouble, then spent twenty frustrated minutes on the motion sensor, which simply never appeared during pairing mode no matter how many times they pressed the reset button. The actual cause turned out to be the battery, a fresh one straight from the package that happened to be a dud, common enough with any battery brand. Swapping in a second fresh battery from an entirely different pack fixed it instantly, the sensor joined within just a few seconds. Their advice to future readers was to keep a spare battery on hand specifically for this lesson, since a single bad battery is a far more likely explanation than anything genuinely wrong with the sensor, the coordinator, or your Zigbee software itself.

Why the plug is a good confidence-builder

Pairing the smart plug first, as this lesson recommends, gives you a fast, visible win: press a button, it joins within seconds, and toggling it on Home Assistant's dashboard produces an immediate, satisfying physical click. That early success builds genuine confidence going into the two battery-powered sensors, which behave slightly differently and occasionally need the troubleshooting steps this lesson already covered.

Reading a sensor's first reported values

Don't be alarmed if a temperature sensor's very first reading looks slightly off, some devices report a placeholder value in the seconds immediately after joining, before their first genuine measurement comes through. Wait a minute or two and check again carefully, a stable, plausible reading confirms the sensor is genuinely working correctly, rather than a single early number that may not reflect its actual, ongoing behavior over time.

Motion sensor sensitivity and false triggers

A motion sensor placed near a heating vent, a window with direct sunlight, or a ceiling fan can occasionally report motion when nothing actually moved through the room, a false trigger caused by rapid temperature or light changes rather than an actual malfunction. This isn't something to fix today, at your desk during pairing, but worth keeping in mind once you choose the sensor's permanent location, covered later in this module.

Keeping this session focused

It's tempting, once pairing feels easy, to unbox every other Zigbee device you own and pair them all in the same sitting. Resist that urge for now, this lesson's three devices are enough to build genuine, confident familiarity with the pairing, testing, and recording pattern. Later modules deliberately expand your mesh device by device, at a pace that keeps your notebook and naming scheme consistent rather than rushed.

A quick word on device availability

Both ZHA and Zigbee2MQTT track whether a device is currently reachable, shown as an availability or last-seen indicator alongside its entities. Router devices like your smart plug typically show as continuously available, while battery-powered sensors report on their own schedule and may briefly show as unavailable between reports, entirely normal, expected behavior rather than any kind of fault worth investigating right now.

Celebrating this small milestone

Three working Zigbee devices, tested, named, and recorded, is a genuinely meaningful milestone in this course, the first real, tangible proof that your coordinator, your chosen software path, and your growing mesh network all genuinely work together correctly, end to end, exactly as this module's earlier lessons carefully planned for.

Finished this lesson?