FillTrait.AvailableFillLevels

class FillTrait.AvailableFillLevels : ClusterStruct


The available fill levels.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

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

List<FillTrait.Level>

List of level names and language-specific synonyms.

Boolean

If true, the device handles additional grammar for increase or decrease logic, as represented by the levels array (for example, half level).

Public constructors

AvailableFillLevels

AvailableFillLevels(
    levels: List<FillTrait.Level> = emptyList(),
    ordered: Boolean = false
)

Creates the AvailableFillLevels class.

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

levels

val levelsList<FillTrait.Level>

List of level names and language-specific synonyms.

ordered

val orderedBoolean

If true, the device handles additional grammar for increase or decrease logic, as represented by the levels array (for example, half level).