Instance Method

roomForEntireHome

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

Declaration

- (HMRoom *)roomForEntireHome;

Return Value

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

Discussion

HomeKit assigns new accessories to this room until you assign them to a more specific room with assignAccessory:toRoom:completionHandler:, or until the user assigns them to a room using the Home app.

You can’t rename this room, add it to a zone, or remove it from the home. It also doesn’t appear in the home’s rooms array.

See Also

Dividing a House into Rooms

rooms

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

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