---
title: "writeAttributeLampAlarmMode(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterballastconfiguration/writeattributelampalarmmode(withvalue:completionhandler:)"
---

# writeAttributeLampAlarmMode(withValue:completionHandler:)

## Declaration

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

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