ClosureControl

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ClosureControl : ClosureControlTrait.Attributes, MatterTrait, ClosureControlCommands


API for the ClosureControl trait. This trait provides an interface for controlling a closure.

Summary

Public properties

open TraitFactory<ClosureControl>

Inherited functions

From com.google.home.matter.standard.ClosureControlCommands
suspend Unit

Initiates a calibration of the closure.

BatchableCommand<Unit>

The batchable version of calibrate command.

suspend Unit

The closure updates its position, latch state and motion speed.

BatchableCommand<Unit>

The batchable version of moveTo command.

suspend Unit

Stops the closure.

BatchableCommand<Unit>

The batchable version of stop command.

From com.google.home.matter.standard.ClosureControlTrait.Attributes
open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.matter.standard.ClosureControlTrait.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?

The estimated time remaining, in seconds, before the operation is complete.

List<ClosureControlTrait.ClosureErrorEnum>?

A list of active errors.

ClosureControlTrait.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.

ClosureControlTrait.LatchControlModesBitmap?

Whether the latch mechanism can be latched or unlatched remotely.

ClosureControlTrait.MainStateEnum?

The current operational state of the closure.

ClosureControlTrait.OverallCurrentStateStruct?

The current Position, Latch, and Speed states, whichever are applicable based on the feature flags set.

ClosureControlTrait.OverallTargetStateStruct?

The TargetPosition, TargetLatch, TargetSpeed values, whichever are applicable according to the feature flags set.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: ClosureControl.Attribute): Boolean

supports

fun supports(command: ClosureControl.Command): Boolean

Public properties

factory

open val factoryTraitFactory<ClosureControl>