# OperationalStateCommands

# OperationalStateCommands


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

<br />

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

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

*** ** * ** ***

Commands for the OperationalState trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.PauseCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#pause()()` Pause the device if possible, based on the current operation underway. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.PauseCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#pauseBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#pause()` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.ResumeCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#resume()()` Resume operation if the device is in a state where it can be resumed. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.ResumeCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#resumeBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#resume()` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StartCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#start()()` Start the device if the device is in a state where it can be started. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StartCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#startBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#start()` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StopCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#stop()()` Stop the device if possible, based on the current operation underway. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StopCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#stopBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateCommands#stop()` command. |

## Public functions

### pause

```
suspend fun pause(): OperationalStateTrait.PauseCommand.Response
```

Pause the device if possible, based on the current operation underway.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.PauseCommand.Response` | The result of the completed `Pause` command. |

### pauseBatchable

```
fun pauseBatchable(): BatchableCommand<OperationalStateTrait.PauseCommand.Response>
```

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

Pause the device if possible, based on the current operation underway.

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

### resume

```
suspend fun resume(): OperationalStateTrait.ResumeCommand.Response
```

Resume operation if the device is in a state where it can be resumed.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.ResumeCommand.Response` | The result of the completed `Resume` command. |

### resumeBatchable

```
fun resumeBatchable(): BatchableCommand<OperationalStateTrait.ResumeCommand.Response>
```

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

Resume operation if the device is in a state where it can be resumed.

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

### start

```
suspend fun start(): OperationalStateTrait.StartCommand.Response
```

Start the device if the device is in a state where it can be started.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StartCommand.Response` | The result of the completed `Start` command. |

### startBatchable

```
fun startBatchable(): BatchableCommand<OperationalStateTrait.StartCommand.Response>
```

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

Start the device if the device is in a state where it can be started.

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

### stop

```
suspend fun stop(): OperationalStateTrait.StopCommand.Response
```

Stop the device if possible, based on the current operation underway.

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.StopCommand.Response` | The result of the completed `Stop` command. |

### stopBatchable

```
fun stopBatchable(): BatchableCommand<OperationalStateTrait.StopCommand.Response>
```

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

Stop the device if possible, based on the current operation underway.

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