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

# HMPresenceEvent

An event that triggers based on the presence of users in the home.

```
class HMPresenceEvent
```

## Topics

### Creating a presence event

[`init(presenceEventType:presenceUserType:)`](/documentation/HomeKit/HMPresenceEvent/init(presenceEventType:presenceUserType:))

Creates a new presence event with the specified event and user presence types.

### Inspecting a presence event

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

The event type that triggers the presence event.

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

The user type whose presence triggers the event.



---

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)