---
title: HMServiceGroup
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmservicegroup
---

# HMServiceGroup

A collection of accessory services.

## Declaration

```swift
class HMServiceGroup
```

## Overview

Overview A service group makes it easier to address the services as a single entity. For example, a user might choose to group a set of lights together as “Desk Lamps,” and have another set of lights grouped as “Ceiling Lights”. You create service groups using the addServiceGroup(withName:completionHandler:) method of HMHome. Service groups are visible to Siri and allow users to control a group of services through Siri.

## Topics

### Managing Service Groups

- [name](homekit/hmservicegroup/name.md)
- [uniqueIdentifier](homekit/hmservicegroup/uniqueidentifier.md)
- [updateName(_:completionHandler:)](homekit/hmservicegroup/updatename(_:completionhandler:).md)
- [services](homekit/hmservicegroup/services.md)
- [addService(_:completionHandler:)](homekit/hmservicegroup/addservice(_:completionhandler:).md)
- [removeService(_:completionHandler:)](homekit/hmservicegroup/removeservice(_:completionhandler:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Grouping services

- [servicesWithTypes(_:)](homekit/hmhome/serviceswithtypes(_:).md)
- [serviceGroups](homekit/hmhome/servicegroups.md)
- [addServiceGroup(withName:completionHandler:)](homekit/hmhome/addservicegroup(withname:completionhandler:).md)
- [removeServiceGroup(_:completionHandler:)](homekit/hmhome/removeservicegroup(_:completionhandler:).md)
