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

# changeToMode(with:completion:)

Command ChangeToMode

## Declaration

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

```swift
func changeToMode(with params: MTRLaundryWasherModeClusterChangeToModeParams) async throws -> MTRLaundryWasherModeClusterChangeToModeResponseParams
```

## Discussion

Discussion This command is used to change device modes.
