TemperatureControlTrait.SetTemperatureCommand.Request

class TemperatureControlTrait.SetTemperatureCommand.Request : ClusterStruct


The request payload for the SetTemperature command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    targetTemperature: OptionalValue<Short>,
    targetTemperatureLevel: OptionalValue<UByte>
)

Creates a request payload for the SetTemperature command.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

OptionalValue<Short>

The desired temperature setpoint.

OptionalValue<UByte>

The desired temperature level, in terms of the index of the setting in the supportedTemperatureLevels list.

Public constructors

Request

Request(
    targetTemperature: OptionalValue<Short> = OptionalValue.absent(),
    targetTemperatureLevel: OptionalValue<UByte> = OptionalValue.absent()
)

Creates a request payload for the SetTemperature command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

targetTemperature

val targetTemperatureOptionalValue<Short>

The desired temperature setpoint.

targetTemperatureLevel

val targetTemperatureLevelOptionalValue<UByte>

The desired temperature level, in terms of the index of the setting in the supportedTemperatureLevels list.