<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -",
    "visionOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHome/transferProvisionalHome(connectionDetails:targetHomeUniqueIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "s:So6HMHomeC7HomeKitE019transferProvisionalB017connectionDetails06targetB16UniqueIdentifierAbCE0eB14TransferResultVAbCE0eb10ConnectionG0V_10Foundation4UUIDVtYaAbCE0ebK5ErrorOYKF"
  },
  "title" : "transferProvisionalHome(connectionDetails:targetHomeUniqueIdentifier:)"
}
-->

# transferProvisionalHome(connectionDetails:targetHomeUniqueIdentifier:)

Transfers a temporary, provisional home to a person’s home hub.

```
func transferProvisionalHome(connectionDetails: HMHome.ProvisionalHomeConnectionDetails, targetHomeUniqueIdentifier: UUID) async throws(HMHome.ProvisionalHomeTransferError) -> HMHome.ProvisionalHomeTransferResult
```

## Parameters

`connectionDetails`

A structure containing the opaque token HomeKit uses to transfer a provisional home to a home hub.

`targetHomeUniqueIdentifier`

The UUID you obtain from the home installation server that identifies the destination home on a home hub. This UUID is distinct from a provisional home’s own identifier.

## Return Value

Transfer results for each accessory, allowing you to identify a partially successful transfer.

## Overview

When you transfer a temporary home to a person’s home hub, HomeKit encodes a snapshot of
all paired accessories, creates a secure channel with the connection details’ [`transferToken`](/documentation/HomeKit/HMHome/ProvisionalHomeConnectionDetails/transferToken), and uses the channel to send the snapshot to the home hub.

> Throws: Error information for failures that occur when transferring a temporary, provisional home to a person’s home hub.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)