Instance Property

rooms

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

Declaration

var rooms: [HMRoom] { get }

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

func roomForEntireHome() -> HMRoom

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

class HMRoom

The smallest subdivision of a home’s space.