---
title: rooms
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmhome/rooms
---

# rooms

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

## Declaration

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

## Discussion

Discussion Each HMHome instance has an immutable default room — returned by the 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 array.

## See Also

### Dividing a house into rooms

- [roomForEntireHome()](homekit/hmhome/roomforentirehome().md)
- [addRoom(withName:completionHandler:)](homekit/hmhome/addroom(withname:completionhandler:).md)
- [removeRoom(_:completionHandler:)](homekit/hmhome/removeroom(_:completionhandler:).md)
- [HMRoom](homekit/hmroom.md)
