Instance Property

rooms

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

Declaration

@property(readonly, copy, nonatomic) NSArray<HMRoom *> *rooms;

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

A room that represents all parts of the home that don’t have a more specific room to represent them.

- addRoomWithName:completionHandler:

Creates a new room with the specified name.

- removeRoom:completionHandler:

Removes a room from the home.

HMRoom

The smallest subdivision of a home’s space.