<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMZone",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMZone"
  },
  "title" : "HMZone"
}
-->

# HMZone

A collection of rooms that users think of as a single area, like upstairs or downstairs.

```
class HMZone
```

## Overview

An [`HMZone`](/documentation/HomeKit/HMZone) instance is an optional grouping of rooms in a home, with names like “upstairs” and “downstairs”. Zones are optional—rooms don’t need to be in a zone. By adding rooms to a zone, the user can give commands to Siri like “Siri, turn on all of the lights downstairs.” A single room can be in multiple zones—for example, “kitchen” might be in both the “downstairs” and “entertainment area” zones.

You create new zones using the [`addZone(withName:completionHandler:)`](/documentation/HomeKit/HMHome/addZone(withName:completionHandler:)) method of [`HMHome`](/documentation/HomeKit/HMHome). A zone can’t span homes—that is, you can’t create a zone that includes rooms from more than one home.

## Topics

### Identifying a Zone

[`name`](/documentation/HomeKit/HMZone/name)

The name of the zone.

[`-  updateName:completionHandler:`](/documentation/HomeKit/HMZone/updateName(_:completionHandler:))

Updates the name of the zone.

[`uniqueIdentifier`](/documentation/HomeKit/HMZone/uniqueIdentifier)

The unique identifier for a zone.

### Assigning Rooms to a Zone

[`rooms`](/documentation/HomeKit/HMZone/rooms)

Array of rooms in the zone.

[`-  addRoom:completionHandler:`](/documentation/HomeKit/HMZone/addRoom(_:completionHandler:))

Adds a room to the zone.

[`-  removeRoom:completionHandler:`](/documentation/HomeKit/HMZone/removeRoom(_:completionHandler:))

Removes a room from the zone.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)