---
title: "changeToMode(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterovenmode/changetomode(with:expectedvalues:expectedvalueinterval:completion:)"
---

# changeToMode(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func changeToMode(with params: MTROvenModeClusterChangeToModeParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTROvenModeClusterChangeToModeResponseParams?, (any Error)?) -> Void)
```

```swift
func changeToMode(with params: MTROvenModeClusterChangeToModeParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTROvenModeClusterChangeToModeResponseParams
```
