---
title: "on(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteronoff/on(with:completion:)"
---

# on(with:completion:)

## Declaration

```swift
func on(with params: MTROnOffClusterOnParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func on(with params: MTROnOffClusterOnParams?) async throws
```
