Instance Method

builtinActionSetOfType:

Retrieves the builtin action set for the specified type.

Declaration

- (HMActionSet *)builtinActionSetOfType:(NSString *)actionSetType;

Parameters

actionSetType

Type of the builtin action set. Supported action set types are HMActionSetTypeWakeUp, HMActionSetTypeSleep, HMActionSetTypeHomeDeparture and HMActionSetTypeHomeArrival.

Return Value

The builtin action set corresponding to the type argument.

Discussion

Returns nil if no action set is found.

See Also

Creating Action Sets

actionSets

An array of the action sets in the home.

- addActionSetWithName:completionHandler:

Adds a new action set to the home.

- removeActionSet:completionHandler:

Removes an action set from the home.

- executeActionSet:completionHandler:

Executes all the actions in a specified action set.

HMActionSet

A collection of actions that you trigger as a group.