OpenCloseTrait.OpenCloseFeature

data class OpenCloseTrait.OpenCloseFeature


OpenClose trait FeatureMap.

Summary

Public constructors

OpenCloseFeature(supportsDiscreteOnlyOpenClose: Boolean)

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

Indicates whether this device supports discrete states only, which means the device must either be fully open or fully closed and it does not support values between 0% and 100%.

String

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

Public constructors

OpenCloseFeature

OpenCloseFeature(supportsDiscreteOnlyOpenClose: Boolean = false)

Creates the OpenCloseFeature 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.

supportsDiscreteOnlyOpenClose

val supportsDiscreteOnlyOpenCloseBoolean

Indicates whether this device supports discrete states only, which means the device must either be fully open or fully closed and it does not support values between 0% and 100%.

traitId

val traitIdString

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