---
title: endEvents
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmeventtrigger/endevents
---

# endEvents

The events associated with the end of scene represented by this trigger.

## Declaration

```swift
var endEvents: [HMEvent] { get }
```

## Discussion

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.

## See Also

### Restoring the previous scene after an event

- [updateEndEvents(_:completionHandler:)](homekit/hmeventtrigger/updateendevents(_:completionhandler:).md)
