<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHome/rooms",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMHome(py)rooms"
  },
  "title" : "rooms"
}
-->

# rooms

An array of the rooms created and managed by the user.

```
var rooms: [HMRoom] { get }
```

## Discussion

Each [`HMHome`](/documentation/HomeKit/HMHome) instance has an immutable default room — returned by the [`roomForEntireHome()`](/documentation/HomeKit/HMHome/roomForEntireHome()) method — to hold accessories that the user hasn’t assigned to a specific room. Unlike user-managed rooms, the default room doesn’t appear in the [`rooms`](/documentation/HomeKit/HMHome/rooms) array.

---

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)