---
title: "writeAttributeOnTime(withValue:params:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteronoff/writeattributeontime(withvalue:params:completion:)"
---

# writeAttributeOnTime(withValue:params:completion:)

## Declaration

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

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