RelativeHumidityControl

@Generated(value = ["GoogleHomePlatformCodegen"])
interface RelativeHumidityControl : RelativeHumidityControlTrait.Attributes, MatterTrait, RelativeHumidityControlCommands


API for the RelativeHumidityControl trait. This trait belongs to devices that support humidity settings such as humidifiers and dehumidifiers.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public properties

open TraitFactory<RelativeHumidityControl>

Inherited functions

From com.google.home.google.RelativeHumidityControlCommands
suspend Unit

Set the relative humidity level to a specific value.

BatchableCommand<Unit>

The batchable version of setRelativeHumidity command.

suspend Unit
stepRelativeHumidity(
    relativeHumidityPercent: UInt,
    relativeHumidityWeight: UInt,
    stepMode: RelativeHumidityControlTrait.StepMode
)

Increase or decrease the relative humidity.

BatchableCommand<Unit>
stepRelativeHumidityBatchable(
    relativeHumidityPercent: UInt,
    relativeHumidityWeight: UInt,
    stepMode: RelativeHumidityControlTrait.StepMode
)

The batchable version of stepRelativeHumidity command.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.google.RelativeHumidityControlTrait.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.

UInt

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.

UInt?

The maximum humidity level as a percentage.

UInt?

The minimum humidity level as a percentage.

UInt?

The current target humidity percentage of the device.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: RelativeHumidityControl.Attribute): Boolean

supports

fun supports(command: RelativeHumidityControl.Command): Boolean

Public properties