<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 9.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMEvent"
  },
  "title" : "HMEvent"
}
-->

# HMEvent

The abstract base class for a HomeKit event.

```
class HMEvent
```

## Topics

### Getting information about the event

[`uniqueIdentifier`](/documentation/HomeKit/HMEvent/uniqueIdentifier)

A unique identifier for the event.

[`+  isSupportedForHome:`](/documentation/HomeKit/HMEvent/isSupported(for:))

A Boolean value indicating whether the event can be added to an event trigger on the specified home.

### Initializers

[`-  init`](/documentation/HomeKit/HMEvent/init())

### Type Methods

[`+  new`](/documentation/HomeKit/HMEvent/new())

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherited By

[`HMPresenceEvent`](/documentation/HomeKit/HMPresenceEvent)

[`HMTimeEvent`](/documentation/HomeKit/HMTimeEvent)

[`HMLocationEvent`](/documentation/HomeKit/HMLocationEvent)

[`HMCharacteristicEvent`](/documentation/HomeKit/HMCharacteristicEvent)

[`HMCharacteristicThresholdRangeEvent`](/documentation/HomeKit/HMCharacteristicThresholdRangeEvent)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)