# DeviceEnergyManagementModeCommands

# DeviceEnergyManagementModeCommands


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

<br />

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

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

*** ** * ** ***

Commands for the DeviceEnergyManagementMode trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeCommands#changeToMode(kotlin.UByte)(newMode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html)` Change device modes. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeCommands#changeToModeBatchable(kotlin.UByte)(newMode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeCommands#changeToMode(kotlin.UByte)` command. |

## Public functions

### changeToMode

```
suspend fun changeToMode(newMode: UByte): DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response
```

Change device modes.

| Parameters |
|---|---|
| `newMode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | The mode to change to. This must be one of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.Attributes#supportedModes()`. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response` | The result of the completed `ChangeToMode` command. |

### changeToModeBatchable

```
fun changeToModeBatchable(newMode: UByte): BatchableCommand<DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeCommands#changeToMode(kotlin.UByte)` command.

Change device modes.

| Parameters |
|---|---|
| `newMode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | The mode to change to. This must be one of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.Attributes#supportedModes()`. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response>` | BatchableCommand |