---
title: "setTemperatureWithExpectedValues(_:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustertemperaturecontrol/settemperaturewithexpectedvalues(_:expectedvalueinterval:completion:)"
---

# setTemperatureWithExpectedValues(_:expectedValueInterval:completion:)

## Declaration

```swift
func setTemperatureWithExpectedValues(_ expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setTemperatureWithExpectedValues(_ expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
