---
title: "offWithEffect(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteronoff/offwitheffect(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# offWithEffect(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func offWithEffect(with params: MTROnOffClusterOffWithEffectParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func offWithEffect(with params: MTROnOffClusterOffWithEffectParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
