DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct

class DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct : ClusterStruct


Represents the power adjustment capability of the ESA.

Summary

Public constructors

Creates the PowerAdjustCapabilityStruct 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

DeviceEnergyManagementTrait.PowerAdjustReasonEnum

The cause of the adjustment capability.

List<DeviceEnergyManagementTrait.PowerAdjustStruct>?

Indicates how the ESA can be adjusted at the current time.

Public constructors

PowerAdjustCapabilityStruct

PowerAdjustCapabilityStruct(
    powerAdjustCapability: List<DeviceEnergyManagementTrait.PowerAdjustStruct>? = null,
    cause: DeviceEnergyManagementTrait.PowerAdjustReasonEnum = PowerAdjustReasonEnum.NoAdjustment
)

Creates the PowerAdjustCapabilityStruct 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

cause

val causeDeviceEnergyManagementTrait.PowerAdjustReasonEnum

The cause of the adjustment capability.

powerAdjustCapability

val powerAdjustCapabilityList<DeviceEnergyManagementTrait.PowerAdjustStruct>?

Indicates how the ESA can be adjusted at the current time.