Class

HMServiceGroup

A collection of accessory services.

Declaration

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

var name: String

The name of the service group.

var uniqueIdentifier: UUID

The unique identifier for the service group.

var services: [HMService]

Array of the services in the service group.

Relationships

Inherits From

Conforms To

See Also

Grouping Services

func servicesWithTypes([String]) -> [HMService]?

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

var serviceGroups: [HMServiceGroup]

An array of all service groups in the home.