Class

HMServiceGroup

A collection of accessory services.

Declaration

@interface HMServiceGroup : NSObject

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 addServiceGroupWithName: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

The name of the service group.

uniqueIdentifier

The unique identifier for the service group.

- updateName:completionHandler:

Updates the name of the service group.

services

Array of the services in the service group.

- addService:completionHandler:

Adds a new service to the service group.

- removeService:completionHandler:

Removes a service from the service group.

Relationships

Inherits From

See Also

Grouping Services

- servicesWithTypes:

Returns an array of all services provided by accessories in the home that match the specified types.

serviceGroups

An array of all service groups in the home.

- addServiceGroupWithName:completionHandler:

Adds a service group to the home.

- removeServiceGroup:completionHandler:

Removes a service group from the home.