OnOffTrait.Feature

data class OnOffTrait.Feature


OnOff cluster FeatureMap.

Summary

Public constructors

Feature(lighting: Boolean, deadFrontBehavior: Boolean, offOnly: 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

Device supports dead front behavior when the onOff attribute is false.

Boolean

Device has behavior that supports lighting apps.

Boolean
String

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

Public constructors

Feature

Feature(
    lighting: Boolean = false,
    deadFrontBehavior: Boolean = false,
    offOnly: 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.

deadFrontBehavior

val deadFrontBehaviorBoolean

Device supports dead front behavior when the onOff attribute is false.

lighting

val lightingBoolean

Device has behavior that supports lighting apps.

offOnly

val offOnlyBoolean

traitId

val traitIdString

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