DeviceEnergyManagementModeCommands

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

Known direct subclasses
DeviceEnergyManagementMode

API for the DeviceEnergyManagementMode trait.


Summary

Public functions

changeToMode

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

Change device modes.

Parameters
newMode: UByte

The mode to change to. This must be one of the supportedModes.

Returns
DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response

The result of the completed ChangeToMode command.

changeToModeBatchable

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

The batchable version of changeToMode command.

Change device modes.

Parameters
newMode: UByte

The mode to change to. This must be one of the supportedModes.