Class

HMTrigger

An abstract base class for triggering actions based on a set of conditions.

Declaration

@interface HMTrigger : NSObject

Overview

This class defines the basic behavior of triggers, but does not itself specify any criteria for firing a trigger. Use instances of subclasses of HMTrigger to set up concrete triggers for actions.

Topics

Managing Triggers

name

The name of the trigger.

- updateName:completionHandler:

Updates the name of the trigger.

enabled

State of the trigger.

- enable:completionHandler:

Changes the enabled state of the trigger.

lastFireDate

The last time this trigger fired.

uniqueIdentifier

A unique identifier for this trigger.

Managing Action Sets

actionSets

Array of all action sets that will be executed by the trigger.

- addActionSet:completionHandler:

Adds an action set to the trigger.

- removeActionSet:completionHandler:

Removes an action set from the trigger.

Relationships

Inherits From

See Also

Triggering an Action Set

triggers

An array of triggers defined in the home.

- addTrigger:completionHandler:

Adds a trigger to the home.

- removeTrigger:completionHandler:

Removes a trigger from the home.

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.