The smallest subdivision of a home’s space.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
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
add 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.