ExtendedFanControl

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ExtendedFanControl : ExtendedFanControlTrait.Attributes, MatterTrait, Updatable, ExtendedFanControlCommands


API for the ExtendedFanControl trait. This trait is for devices with extended fan controls.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public properties

open TraitFactory<ExtendedFanControl>

Inherited functions

From com.google.home.google.ExtendedFanControlCommands
suspend Unit
extendedStep(
    fanSpeedRelativeWeight: Long,
    direction: ExtendedFanControlTrait.StepDirection
)

Set the relative speed.

BatchableCommand<Unit>
extendedStepBatchable(
    fanSpeedRelativeWeight: Long,
    direction: ExtendedFanControlTrait.StepDirection
)

The batchable version of extendedStep command.

suspend Unit

Reverse the current direction of the airflow.

BatchableCommand<Unit>

The batchable version of toggleAirflowDirection command.

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.Updatable
suspend ExtendedFanControl

Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state.

Inherited properties

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

String?

The currently selected custom speed setting.

ExtendedFanControlTrait.AvailableFanSpeeds?

The custom speed settings supported by this device.

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.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: ExtendedFanControl.Attribute): Boolean

supports

fun supports(command: ExtendedFanControl.Command): Boolean

Public properties

factory

open val factoryTraitFactory<ExtendedFanControl>