ExtendedFanControlTrait.AvailableFanSpeeds

class ExtendedFanControlTrait.AvailableFanSpeeds : ClusterStruct


The speed settings supported by the device.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

AvailableFanSpeeds(
    ordered: Boolean,
    speeds: List<ExtendedFanControlTrait.Speed>
)

Creates the AvailableFanSpeeds class.

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

Boolean

Indicates that the speeds list is in ascending speed order.

List<ExtendedFanControlTrait.Speed>

List of speed settings.

Public constructors

AvailableFanSpeeds

AvailableFanSpeeds(
    ordered: Boolean = false,
    speeds: List<ExtendedFanControlTrait.Speed> = emptyList()
)

Creates the AvailableFanSpeeds class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

ordered

val orderedBoolean

Indicates that the speeds list is in ascending speed order.

speeds

val speedsList<ExtendedFanControlTrait.Speed>

List of speed settings.