Matter Homelab
Glowing blue circular button inside a translucent ring on an isometric dark circuit board linked to pink hexagonal nodes, evoking a Matter device reset
troubleshooting

How to Reset a Matter Device Pairing Code: What Works

A Matter pairing code can't be changed. Factory reset to reuse the printed code, or generate a temporary share code from the app that controls it.

By Matter Homelab Editorial · · Updated · 6 min read

The pairing code on a matter device can’t be reset or changed. A factory reset puts the device back into first-time setup, where the printed QR or numeric code is needed again. To add a second app without a reset, generate a temporary code in the app that already controls it.

A factory reset means removing the device from each app, such as Apple Home, Google Home and Home Assistant and setting it up again. A temporary code adds a controller instead: Matter Alpha says Multi-Admin “doesn’t require re-entering credentials or resetting an accessory”.

Evidence note: the steps come from Google, Apple, Home Assistant (2026.11 docs), TP-Link, Eve, the Matter SDK chip-tool docs and Matter Alpha, checked on 2026-11-18; they were not run by us.

Can you change a Matter device’s pairing code?

No. The printed code is the device’s onboarding data, and Matter Alpha’s lost-code guide says “There’s no way to extract it from the device itself”. What a controller can give you is a separate, temporary code for one more app.

Matter Alpha’s QR code explainer breaks the format down: the QR payload starts with MT: and carries vendor and product ID, commissioning flow, discovery capabilities, discriminator and PIN. The number beside it “is not the same as the PIN code”; it is a shorter manual pairing code without the vendor ID, product ID or long discriminator. Per Google’s commissioning primer, the controller matches the discriminator, then “uses the passcode from the onboarding payload” to set up a PASE session. The primer adds that “A fail-safe provides a way to roll back the device to its original state if commissioning doesn’t complete successfully”.

Once a device is set up, adding it elsewhere takes a fresh code: Matter Alpha’s multi-admin walkthrough says “you’ll need to use a new code for each additional platform”.

One exception: Eve accessories upgraded from HomeKit to Matter got a new code during the upgrade, which Eve’s upgrade page says “will completely replace the HomeKit setup code”. For those devices the sticker is wrong, and “nobody but you has a copy”.

Which kind of reset do you need?

Matter Alpha’s lost-code guide says the original code is needed for first-time setup, after unpairing from the original platform, or “if you’ve done a full hardware reset”, but not for adding a device to more platforms.

SituationWhat to doSource
Works in one app, you want a second app tooTemporary code from the current appMatter Alpha: Multi-Admin “doesn’t require re-entering credentials or resetting an accessory”
You no longer use the deviceRemove it from the app, then factory resetGoogle: “factory reset it after you remove it”
Sticker lost, device still pairedTemporary code, or the vendor app’s stored codeMatter Alpha lost-code guide

The multi-admin sharing guide covers fabrics and their limits.

Factory reset so the printed code works again

A factory reset returns the device to first-time setup, where the sticker code is needed again. Do it in this order:

  1. Find the code first. Home Assistant’s Matter docs warn that after a reset “you’ll need the QR code or numeric setup code”, and “Without this information, commissioning won’t be possible”. If the code is only in the accompanying documentation, the same docs suggest keeping a photo of it.
  2. Remove it from every controller you can reach. Apple’s Matter accessory page offers “Remove From All Services”; Google’s help page says to “factory reset it after you remove it”; in Home Assistant, the device’s three dots menu has Delete.
  3. Run the manufacturer’s reset sequence. The gesture depends on the maker. TP-Link’s Matter FAQ is one example: hold reset at least 10 seconds on plugs and switches; for bulbs, cycle power three times (Tapo) or five times (Kasa) about a second apart, then wait for three blinks.
  4. Commission it again. Home Assistant’s docs say “This will use the Bluetooth connection of your phone to add the device”.

Generate a temporary code without resetting

If any controller still runs the device, ask it for a new code. Google’s help page calls it “a temporary pairing or QR code”, and Matter Alpha’s lost-code guide says that Pairing Mode in your existing controller “will give you a new pairing code for you to paste or type into your other system”.

Where the button lives:

  • Apple Home: touch and hold the accessory, open its settings, Turn On Pairing Mode, Copy Code, per Matter Alpha’s walkthrough.
  • Google Home: touch and hold the tile, Settings, Linked Matter apps & services, then Link apps & services, or tap “Use pairing code” or “Share with QR code” for a temporary pairing or QR code, per Google’s help page. Matter Alpha says to finish within 15 minutes.
  • Alexa: the device, Settings, Other Assistants and Apps, Add another, Copy, per Matter Alpha’s walkthrough (August 5, 2024).
  • Home Assistant: per the Matter docs, “Settings > Connectivity > Matter and select Devices”, pick the device, then “Select Share device, then in the dialog, select Share device again”.

The 300-second window that Home Assistant’s older Matter server opened by default comes from python-matter-server, which sets timeout: int = 300. That repository “was archived by the owner on Jun 23, 2026”, and its successor’s page says “The Matter Server was rewritten and moved to matterjs-server!” (matter-js).

From a shell, the Matter SDK’s chip-tool guide documents the same operation:

# node 1, option 1 = Enhanced Commissioning Method,
# 300 s window, 1000 PBKDF iterations, discriminator 2365
./chip-tool pairing open-commissioning-window 1 1 300 1000 2365

It prints a line like Manual pairing code: [36281602573]. Option 0 uses the Basic method instead.

To see which platforms a device is already shared with, Home Assistant’s docs say to “select the three dots menu, then Manage fabrics” next to the Share device button. The Matter controller explainer covers which apps count as separate administrators.

What if you lost the pairing code?

If the device is still paired to a working controller, you don’t need the sticker: generate a temporary code as above. Matter Alpha’s lost-code guide (August 13, 2025) says the code can’t be read out of the hardware. Home Assistant’s docs add that without the QR or numeric code after a reset, “commissioning won’t be possible”.

Places the code may still live:

  • The vendor app. TP-Link’s Tapo app shows a Matter Setup Code under Device Settings, then Device Info, and TP-Link ships a spare code sticker in the box. Eve stores the codes it generated during Matter upgrades in the Eve app. Matter Alpha names Govee, where the code is under the device settings, Other, then Matter; AiDot’s app does not show it.
  • The packaging and manual. Home Assistant’s docs mention codes that appear only “in accompanied documentation”.
  • The manufacturer. Matter Alpha says many makers keep a record of the code or can issue a new one, and “They’ll at least want the serial number, so keep that handy”.

Going forward, Matter Alpha suggests storing each code in a notes app or spreadsheet, and says the numeric code alone is enough.

Why does the printed code still fail after a reset?

TP-Link’s FAQ says its bulbs “blink three times to confirm the reset”. Home Assistant’s docs say commissioning uses “the Bluetooth connection of your phone”.

Google’s help page puts removal before the reset: “factory reset it after you remove it”. Thread devices also need a working border router, covered in the Thread border router guide, and the pairing failures fix list walks every other commissioning stage in order.

FAQ

Can you use the same Matter QR code twice?

Yes, after a factory reset. Home Assistant’s docs say the QR code or numeric setup code is needed again after a reset. While the device is paired, add other apps with a temporary code from the current app instead; Matter Alpha says “you’ll need to use a new code for each additional platform”.

Where do I find the Matter setup code on my device?

Look on the device itself, its packaging, or its manual, usually as a QR code with a numeric code beside it. TP-Link prints it on the casing and includes a spare sticker in the box. Some vendor apps, such as Tapo and Govee, also show the code after setup, so check there before resetting anything.

Sources

  1. Google Home Help: Set up, manage, and control Matter-enabled devices with Google Home
  2. Google Home Developers: Matter primer, Commissioning
  3. Apple Support: Pair and manage your Matter accessories
  4. Home Assistant: Matter integration
  5. Matter SDK (connectedhomeip): chip-tool guide
  6. python-matter-server (archived): device_controller.py (open_commissioning_window defaults)
  7. matter-js: python-matter-server notice (moved to matterjs-server)
  8. TP-Link Support: Matter Setup Guide, Compatible Devices and Tips
  9. Eve Systems: Getting started with Matter (upgrade to Matter)
  10. Matter Alpha: Matter QR codes explained, what happens when you scan one? (August 2024)
  11. Matter Alpha: How to use Matter Multi-Admin to share your devices across ecosystems (August 2024)
  12. Matter Alpha: Lost your Matter pairing code? Try this (August 2025)

Related