Class

HMRoom

The smallest subdivision of a home’s space.

Declaration

@interface HMRoom : NSObject

Overview

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 addRoomWithName: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.

Topics

Identifying a Room

name

The name of the room.

- updateName:completionHandler:

Updates the name of the room.

uniqueIdentifier

The unique identifier for a room.

Finding Accessories

accessories

The collection of accessories in the room.

Relationships

Inherits From

See Also

Locating an Accessory

room

The room containing the accessory.