Guides

Does factory resetting a HomeKit device change the setup code?

No. The setup code is fixed when the accessory is made, and a factory reset does not touch it. Here is what a reset actually clears, and the one setup where the code really can change.

By

2 min read

No. The setup code is fixed when the accessory is built, and a factory reset does not change it.

The eight-digit HomeKit code, or the eleven-digit Matter one, is printed at the factory and tied to that specific unit for its whole life. A reset does not regenerate it, and there is no menu, in any app, that will. When you reset an accessory and add it back, you use the same code you used the first time.

People usually ask this after resetting a device that was playing up, then realising the sticker is long gone. The hope is that the reset minted a fresh code they can pull up somewhere. It did not. All the reset did was make the accessory advertise itself as unpaired again, ready to accept that same original code.

The one thing that looks like an exception is the short-lived code a platform shows when you share a Matter device to a second app. That code is generated on the spot and expires within minutes. It is not the accessory’s real code, and a reset plays no part in it.

What a factory reset actually clears

A reset wipes the accessory’s state, not its identity. Gone after a reset:

  • The HomeKit pairing, so the device drops out of your home along with any automations that used it
  • Wi-Fi credentials, on Wi-Fi accessories
  • Thread network details, on Thread accessories
  • On-device settings and any local schedules

Untouched:

  • The setup code
  • The serial number and the QR payload printed on the label

That is the point of the code surviving a reset. If it changed, a reset would brick every accessory whose sticker you had lost.

The one case where the code can change

If your “HomeKit device” is actually a software bridge, such as Homebridge, the Home Assistant HomeKit integration, Starling or HOOBS, the rules are different. There the setup code is generated by the software rather than burned into a chip. Wipe the bridge’s stored data or reinstall it and it will usually hand you a new PIN, unless you have fixed one in its configuration.

Physical, shop-bought accessories do not work this way. Their code is hardware.

If the sticker is already gone

A reset will not rescue you here, because you still need the original number to pair the device again. Recovering it is a separate task, covered in finding a lost setup code.

The better fix is upstream. Because the code never changes, you only have to record it once. Back up your setup codes the day each accessory goes in, and a reset becomes a two-minute job rather than a search of the house.

Frequently asked questions

Will a factory reset give my accessory a new setup code?
No. The code is printed at the factory and stays with that unit for life. A reset clears the pairing and network settings so you can add the device again, using the same code as before.
I have lost the sticker. Will resetting help me find the code?
No. The reset makes the accessory pairable again, but only with the original code. If the printed copy is gone you still need to recover it from a photo, the box, or the manufacturer.
Does a reset change the code on a Homebridge or Home Assistant setup?
It can. On a software bridge the setup code is generated by the software rather than fixed in hardware, so wiping its data or reinstalling often produces a new PIN unless you have set one in the configuration.
What about the temporary code another smart home app showed me?
That is a separate, short-lived Matter commissioning code, generated when you share a device to a second platform. It is not the accessory's real setup code, and a factory reset has nothing to do with it.

Guides

Do you need the HomeKit setup code again after pairing?

In normal use, no. A paired accessory keeps working without the code. But a handful of situations bring it back, and Apple Home will not show it to you when they do.

2 min read

  • homekit
  • matter
  • setup-codes
  • pairing

Guides

HomeKit setup code vs Matter setup code: what's the difference?

A HomeKit setup code is eight digits and Apple-only. A Matter code is eleven digits and works across ecosystems. Here is what really separates the two, and how to spot which one your accessory uses.

3 min read

  • homekit
  • matter
  • setup-codes
  • pairing
  • thread

← All posts