<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHomeDelegate/home(_:didUpdate:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(pl)HMHomeDelegate(im)home:didUpdateRoom:forAccessory:"
  },
  "title" : "home(_:didUpdate:for:)"
}
-->

# home(_:didUpdate:for:)

Tells the delegate that a home assigned an accessory to a different room.

```
optional func home(_ home: HMHome, didUpdate room: HMRoom, for accessory: HMAccessory)
```

## Parameters

`home`

The home.

`room`

The new room for the accessory.

`accessory`

The accessory whose room assignment changed.

---

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)