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.

By

2 min read

In normal use, no. Once an accessory is paired to your home it stays paired. It survives the accessory rebooting, your router restarting, iOS updates, Home app updates, and moving to a new iPhone. You can go years without thinking about the code.

Keep it anyway. The times you need it again are the times you least want to be hunting for it.

When the code comes back

  • You factory reset the accessory, usually to fix one that has gone unresponsive or is stuck offline. A reset clears the pairing, so adding the device back needs the original code. It does not generate a new one.
  • You move it to a different home or a different Apple account. Selling a house, shifting a device to a holiday flat, handing it to a family member. Removing an accessory from one home wipes its pairing, and the next home asks for the code.
  • You sell or give the device away. The new owner pairs it fresh with that same code. Remove it from your home first, then pass on the code or a photo of the label.
  • You switch it between the maker’s app and Apple Home. Some accessories need a reset and re-pair to change which app owns them.
  • An accessory drops off and will not come back. Half the troubleshooting guides for a stubborn device end with “remove it and add it again”, which means the code.
  • You rebuild your home. Rare, but HomeKit databases do occasionally get into a state where the fix is removing accessories and re-adding them.

One case looks like it needs the code but does not: adding a Matter accessory to a second platform, such as Alexa or Google Home, alongside Apple. That uses a temporary code the Home app generates for you, not the number on the sticker.

Changing your Wi-Fi network name or password is a grey area. It can force you to re-onboard some Wi-Fi accessories, and a few of those routes run through a factory reset. Thread and Bluetooth accessories are not affected.

When you do not need it

  • Rebooting the accessory, the hub, or your phone
  • Updating iOS, or the Home app
  • Setting up a new iPhone or iPad
  • Adding another person to your home. They use your invitation, not the code

The catch

Apple Home never shows the setup code once an accessory is added. There is no “view code” option, and it is not handed to third-party apps either. So if one of the situations above turns up and the sticker is gone, you are recovering the number the hard way.

The fix is upstream and takes a minute: back up the code the day each accessory goes in.

Frequently asked questions

Can I throw away the setup code after pairing?
Not a good idea. You will not need it day to day, but you will need it again if you ever reset, move, sell or re-add the accessory, and there is no way to retrieve it from Apple Home once the device is paired.
Does the accessory keep working if I lose the code?
Yes. An existing pairing survives reboots, software updates and a new iPhone. Losing the code only bites when you have to pair the device again from scratch.
Do I need the code after getting a new iPhone?
No. Your home configuration syncs through iCloud, so paired accessories come across automatically. The code is for adding a device, not for carrying one over.
If I move an accessory to someone else's home, do they need the code?
Yes. Removing it from your home clears the pairing, so adding it to theirs needs the setup code again. Pass on the code, or a photo of the label, along with the device.

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

Guides

Can you find your HomeKit setup code in the Apple Home app?

The Apple Home app never shows the setup code for an accessory you have already paired. Here is why, the one Matter exception that gets close, and where the real code lives.

3 min read

  • homekit
  • matter
  • apple-home
  • setup-codes
  • pairing

← All posts