ValveConfigurationAndControlCommands

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

Known direct subclasses
ValveConfigurationAndControl

API for the ValveConfigurationAndControl trait.


Summary

Public functions

suspend Unit

Set the valve to its closed position.

BatchableCommand<Unit>

The batchable version of close command.

suspend Unit

Set the valve to its open position.

BatchableCommand<Unit>

The batchable version of open command.

Public functions

close

suspend fun close(): Unit

Set the valve to its closed position.

closeBatchable

fun closeBatchable(): BatchableCommand<Unit>

The batchable version of close command.

Set the valve to its closed position.

Returns
BatchableCommand<Unit>

BatchableCommand

open

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

Set the valve to its open position.

Parameters
optionalArgs: ValveConfigurationAndControlTrait.OpenCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

openBatchable

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

The batchable version of open command.

Set the valve to its open position.

Parameters
optionalArgs: ValveConfigurationAndControlTrait.OpenCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

Returns
BatchableCommand<Unit>

BatchableCommand