ElectricalEnergyMeasurementTrait.Feature

data class ElectricalEnergyMeasurementTrait.Feature


ElectricalEnergyMeasurement Trait FeatureMap.

Summary

Public constructors

Feature(
    importedEnergy: Boolean,
    exportedEnergy: Boolean,
    cumulativeEnergy: Boolean,
    periodicEnergy: Boolean
)

Creates the Feature data class.

Public functions

open ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

String

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

Boolean

Supports the measurement of cumulative energy.

Boolean

Supports the measurement of exported energy.

Boolean

Supports the measurement of imported energy.

Boolean

Supports the measurement of periodic energy.

String

Trait identifier of the Matter Cluster that defines the bitmap Data Type.

Public constructors

Feature

Feature(
    importedEnergy: Boolean = false,
    exportedEnergy: Boolean = false,
    cumulativeEnergy: Boolean = false,
    periodicEnergy: Boolean = false
)

Creates the Feature data class.

Public functions

toRaw

open fun toRaw(): ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

bitmapName

val bitmapNameString

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

cumulativeEnergy

val cumulativeEnergyBoolean

Supports the measurement of cumulative energy.

exportedEnergy

val exportedEnergyBoolean

Supports the measurement of exported energy.

importedEnergy

val importedEnergyBoolean

Supports the measurement of imported energy.

periodicEnergy

val periodicEnergyBoolean

Supports the measurement of periodic energy.

traitId

val traitIdString

Trait identifier of the Matter Cluster that defines the bitmap Data Type. Refer to ClusterId.traitId for the format.