The smallest subdivision of a home’s space.


class HMRoom : NSObject


An HMRoom instance is a part of a home representing an individual room in the home. Rooms don’t have any physical characteristics like size or location. Instead, they’re names that are meaningful to the user, like “living room” or “kitchen”. Meaningful room names enable voice commands like “Siri, turn on the kitchen lights.”

You create new rooms using the addRoom(withName:completionHandler:) method of HMHome. You can also group rooms into zones using instances of HMZone. You can assign accessories to rooms, indicating the presence of that accessory in that room.


Identifying a Room

var name: String

The name of the room.

var uniqueIdentifier: UUID

The unique identifier for a room.

Finding Accessories

var accessories: [HMAccessory]

The collection of accessories in the room.


Inherits From

Conforms To

See Also

Locating an Accessory

var room: HMRoom?

The room containing the accessory.