---
title: "changeToMode(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterovenmode/changetomode(with:completion:)"
---

# changeToMode(with:completion:)

Command ChangeToMode

## Declaration

```swift
func changeToMode(with params: MTROvenModeClusterChangeToModeParams, completion: @escaping @Sendable (MTROvenModeClusterChangeToModeResponseParams?, (any Error)?) -> Void)
```

```swift
func changeToMode(with params: MTROvenModeClusterChangeToModeParams) async throws -> MTROvenModeClusterChangeToModeResponseParams
```

## Discussion

Discussion This command is used to change device modes.
