# TemperatureControlCommands

# TemperatureControlCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface TemperatureControlCommands
```

<br />

Known direct subclasses [TemperatureControl](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControl)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControl` | API for the TemperatureControl trait. |

*** ** * ** ***

Commands for the TemperatureControl trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlCommands#setTemperature(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Set the desired temperature. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlCommands#setTemperatureBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlCommands#setTemperature(kotlin.Function1)` command. |

## Public functions

### setTemperature

```
suspend fun setTemperature(optionalArgs: TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> Unit = {}): Unit
```

Set the desired temperature.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### setTemperatureBatchable

```
fun setTemperatureBatchable(optionalArgs: TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlCommands#setTemperature(kotlin.Function1)` command.

Set the desired temperature.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |