Class

HMActionSet

A collection of actions that you trigger as a group.

Declaration

@interface HMActionSet : NSObject

Overview

Action sets can be executed as a result of evaluating a trigger (instances of HMTrigger) or manually with executeActionSet:completionHandler:. Actions in an action set are performed in an unspecified order. You create new action sets using the addActionSetWithName:completionHandler: method of HMHome.

Topics

Identifiying an Action Set

uniqueIdentifier

The action set's unique identifier.

name

The name of the action set.

- updateName:completionHandler:

Updates the name of the action set.

Specifying a Type

actionSetType

The type of the action set, such as built-in or user-defined.

Action Set Types

The types of action sets that you can define.

Defining the Associated Actions

actions

Set of actions in the action set.

- addAction:completionHandler:

Adds an action to the action set.

- removeAction:completionHandler:

Removes an action from the action set.

HMCharacteristicWriteAction

An action in an action set that writes a value to a characteristic.

HMAction

An abstract base class for actions in HomeKit.

Keeping Track of Execution

executing

The execution status of the action set.

lastExecutionDate

The last execution date of the action set.

Relationships

Inherits From

See Also

Action Sets

HMTimerTrigger

A trigger to activate an action set based on a periodic timer.

HMEventTrigger

A trigger to activate an action set based on a set of events and optional conditions.