LaundryWasherModeCommands

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

Known direct subclasses
LaundryWasherMode

API for the LaundryWasherMode trait.


Summary

Public functions

suspend LaundryWasherModeTrait.ChangeToModeCommand.Response
changeToMode(newMode: UByte)

Change the mode of the device's cluster instance, and set the currentMode attribute of the device's cluster instance.

BatchableCommand<LaundryWasherModeTrait.ChangeToModeCommand.Response>

The batchable version of changeToMode command.

Public functions

changeToMode

suspend fun changeToMode(newMode: UByte): LaundryWasherModeTrait.ChangeToModeCommand.Response

Change the mode of the device's cluster instance, and set the currentMode attribute of the device's cluster instance.

Parameters
newMode: UByte

The mode to set the cluster instance to. This must be one of the values in LaundryWasherMode.ModeOptionStruct.

Returns
LaundryWasherModeTrait.ChangeToModeCommand.Response

The result of the completed ChangeToMode command.

changeToModeBatchable

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

The batchable version of changeToMode command.

Change the mode of the device's cluster instance, and set the currentMode attribute of the device's cluster instance.

Parameters
newMode: UByte

The mode to set the cluster instance to. This must be one of the values in LaundryWasherMode.ModeOptionStruct.