An abstract base class for actions in HomeKit.


Actions can be added to HMActionSet objects. Action sets can then be set for automatic execution in response to specific conditions using HMTrigger objects, or manually triggered with executeActionSet(_:completionHandler:).


Identifying an Action

var uniqueIdentifier: UUID

A unique identifier for the action.


Inherits From

Conforms To

See Also

Triggers and Actions

class HMTrigger

A trigger event, used to trigger one or more action sets when the conditions of the trigger are satisfied.

class HMTimerTrigger

A trigger based on periodic timers.

class HMActionSet

A set of actions to be applied as a single set.

class HMCharacteristicWriteAction

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