OccupancySensingTrait.OccupancyBitmap

data class OccupancySensingTrait.OccupancyBitmap


The current active occupancy state.

Summary

Public constructors

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

The sensed occupancy state.

String

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

Public constructors

OccupancyBitmap

OccupancyBitmap(occupied: Boolean = false)

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

occupied

val occupiedBoolean

The sensed occupancy state.

traitId

val traitIdString

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