ExtendedThermostatTrait.Atom

class ExtendedThermostatTrait.Atom : ClusterStruct


Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Atom(
    id: UInt,
    name: String,
    currentActorInfo: ExtendedThermostatTrait.HvacActorStruct,
    heatingTarget: OptionalValue<ExtendedThermostatTrait.TemperatureThreshold>,
    coolingTarget: OptionalValue<ExtendedThermostatTrait.TemperatureThreshold>,
    rangeTarget: OptionalValue<ExtendedThermostatTrait.RangeTarget>,
    description: String
)

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public constructors

Atom

Atom(
    id: UInt,
    name: String = "",
    currentActorInfo: ExtendedThermostatTrait.HvacActorStruct = HvacActorStruct(),
    heatingTarget: OptionalValue<ExtendedThermostatTrait.TemperatureThreshold> = OptionalValue.absent(),
    coolingTarget: OptionalValue<ExtendedThermostatTrait.TemperatureThreshold> = OptionalValue.absent(),
    rangeTarget: OptionalValue<ExtendedThermostatTrait.RangeTarget> = OptionalValue.absent(),
    description: String = ""
)

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.