PressureMeasurementTrait.Attributes

@Generated(value = ["GoogleHomePlatformCodegen"])
interface PressureMeasurementTrait.Attributes : ClusterStruct

Known direct subclasses
PressureMeasurement

API for the PressureMeasurement trait.


Attributes for the PressureMeasurement cluster.

Summary

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<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

UShort

The revision of the server cluster specification supported by the cluster instance.

PressureMeasurementTrait.Feature

Whether the server supports zero or more optional cluster features.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

Short?

The maximum measured value indicates the maximum pressure value that can be measured.

Short?

The maximum scaled value indicates the maximum measurable value of scaledValue.

Short?

The measured value represents pressure in kPa, calculated at 10 times the pressure value.

Short?

The minimum measured value indicates the minimum pressure value that can be measured.

Short?

The minimum scaled value indicates the minimum measurable value of scaledValue.

Byte?

The scale attribute defines the base 10 exponent used to calculate the scaledValue.

UShort?

The scaled tolerance indicates the possible error range around scaledValue.

Short?

The scaled value represents pressure in Pascals, using a formula that includes the base 10 exponent of scale applied to the pressure value.

UShort?

The tolerance attribute indicates the magnitude of possible error associated with the PressureMeasurement.MeasuredValue, defining the true value within a specific range around it.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

acceptedCommandList

val acceptedCommandList: List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

attributeList

val attributeList: List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

clusterRevision

val clusterRevision: UShort

The revision of the server cluster specification supported by the cluster instance.

featureMap

val featureMap: PressureMeasurementTrait.Feature

Whether the server supports zero or more optional cluster features. A cluster feature is a set of cluster elements that are mandatory or optional for a defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the corresponding bit is set to 1, otherwise the bit is set to 0 (zero).

generatedCommandList

val generatedCommandList: List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

maxMeasuredValue

val maxMeasuredValue: Short?

The maximum measured value indicates the maximum pressure value that can be measured.

Access type: Read

maxScaledValue

val maxScaledValue: Short?

The maximum scaled value indicates the maximum measurable value of scaledValue.

Access type: Read

measuredValue

val measuredValue: Short?

The measured value represents pressure in kPa, calculated at 10 times the pressure value.

Access type: Read

minMeasuredValue

val minMeasuredValue: Short?

The minimum measured value indicates the minimum pressure value that can be measured.

Access type: Read

minScaledValue

val minScaledValue: Short?

The minimum scaled value indicates the minimum measurable value of scaledValue.

Access type: Read

scale

val scale: Byte?

The scale attribute defines the base 10 exponent used to calculate the scaledValue.

Access type: Read

scaledTolerance

val scaledTolerance: UShort?

The scaled tolerance indicates the possible error range around scaledValue.

Access type: Read

scaledValue

val scaledValue: Short?

The scaled value represents pressure in Pascals, using a formula that includes the base 10 exponent of scale applied to the pressure value.

Access type: Read

tolerance

val tolerance: UShort?

The tolerance attribute indicates the magnitude of possible error associated with the PressureMeasurement.MeasuredValue, defining the true value within a specific range around it.

Access type: Read