# ValveConfigurationAndControlCommands

# ValveConfigurationAndControlCommands


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

<br />

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

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

*** ** * ** ***

Commands for the ValveConfigurationAndControl 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/ValveConfigurationAndControlCommands#close()()` Set the valve to its closed position. |
| `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/ValveConfigurationAndControlCommands#closeBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlCommands#close()` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlCommands#open(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Set the valve to its open position. |
| `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/ValveConfigurationAndControlCommands#openBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.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/ValveConfigurationAndControlCommands#open(kotlin.Function1)` command. |

## Public functions

### close

```
suspend fun close(): Unit
```

Set the valve to its closed position.

### closeBatchable

```
fun closeBatchable(): BatchableCommand<Unit>
```

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

Set the valve to its closed position.

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

### open

```
suspend fun open(optionalArgs: ValveConfigurationAndControlTrait.OpenCommand.OptionalArgs.() -> Unit = {}): Unit
```

Set the valve to its open position.

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

### openBatchable

```
fun openBatchable(optionalArgs: ValveConfigurationAndControlTrait.OpenCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>
```

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

Set the valve to its open position.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.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 |