# ClosureControlCommands

# ClosureControlCommands


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

<br />

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

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

*** ** * ** ***

Commands for the ClosureControl 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/ClosureControlCommands#calibrate()()` Initiates a calibration of the closure. |
| `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/ClosureControlCommands#calibrateBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlCommands#calibrate()` 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/ClosureControlCommands#moveTo(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.MoveToCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The closure updates its position, latch state and motion speed. |
| `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/ClosureControlCommands#moveToBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.MoveToCommand.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/ClosureControlCommands#moveTo(kotlin.Function1)` 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/ClosureControlCommands#stop()()` Stops the closure. |
| `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/ClosureControlCommands#stopBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlCommands#stop()` command. |

## Public functions

### calibrate

```
suspend fun calibrate(): Unit
```

Initiates a calibration of the closure. Procedures of how to achieve the calibration are manufacturer-specific.

### calibrateBatchable

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

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

Initiates a calibration of the closure. Procedures of how to achieve the calibration are manufacturer-specific.

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

### moveTo

```
suspend fun moveTo(optionalArgs: ClosureControlTrait.MoveToCommand.OptionalArgs.() -> Unit = {}): Unit
```

The closure updates its position, latch state and motion speed.

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

### moveToBatchable

```
fun moveToBatchable(optionalArgs: ClosureControlTrait.MoveToCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>
```

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

The closure updates its position, latch state and motion speed.

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

### stop

```
suspend fun stop(): Unit
```

Stops the closure.

### stopBatchable

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

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

Stops the closure.

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