A trigger to activate an action set based on a set of events and optional conditions.
- iOS 9.0+
- tvOS 10.0+
- watchOS 2.0+
HMEvent object to trigger the execution of a scene when a combination of characteristic or location events and conditions occur. To create an event trigger, first create one or more event objects that fire an event when the specified trigger values are met. For example, you might create an
HMCharacteristic that fires when the front door is open. Then, you can use
HMEvent convenience methods to create optional predicates that specify conditions that must be met before a scene is executed. For example, you might create a condition that ensures the scene is executed only after sunset.