Contents

HMRoom

The smallest subdivision of a home’s space.

Declaration

class HMRoom

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

Topics

Identifying a room

Finding accessories

See Also

Locating an accessory