Instance Method

builtinActionSet(ofType:)

Retrieves the builtin action set for the specified type.

Declaration

func builtinActionSet(ofType actionSetType: String) -> HMActionSet?

Parameters

actionSetType

Type of the builtin action set. Supported action set types are wakeUp, sleep, homeDeparture and homeArrival.

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

var actionSets: [HMActionSet]

An array of the action sets in the home.

func executeActionSet(HMActionSet, completionHandler: (Error?) -> Void)

Executes all the actions in a specified action set.

class HMActionSet

A collection of actions that you trigger as a group.