endEvents
The events associated with the end of scene represented by this trigger.
Declaration
var endEvents: [HMEvent] { get }Discussion
HomeKit restores the previously active scene when the events in this array trigger. For example, you can use end events to execute a scene for 10 minutes by specifying an HMDurationEvent in the list of endEvents. This restores the previous scene when the duration event triggers.
You can also use HMCharacteristicEvent and HMCharacteristicThresholdRangeEvent objects as end events.