PressureMeasurement

interface PressureMeasurement : PressureMeasurementTrait.Attributes, MatterTrait


API for the PressureMeasurement trait. This trait provides an interface to pressure measurement functionality, including configuration and provision of notifications of pressure measurements.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public functions

Boolean

Public properties

open TraitFactory<PressureMeasurement>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.matter.standard.PressureMeasurementTrait.Attributes
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 PressureMeasurememnt.MeasuredValue, defining the true value within a specific range around it.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: PressureMeasurement.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<PressureMeasurement>