---
title: "writeAttributeDoorOpenEvents(withValue:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/writeattributedooropenevents(withvalue:completion:)"
---

# writeAttributeDoorOpenEvents(withValue:completion:)

## Declaration

```swift
func writeAttributeDoorOpenEvents(withValue value: NSNumber, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeDoorOpenEvents(withValue value: NSNumber) async throws
```
