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

# writeAttributeDoorOpenEvents(withValue:params:completion:)

## Declaration

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

```swift
func writeAttributeDoorOpenEvents(withValue value: NSNumber, params: MTRWriteParams?) async throws
```
