ExtendedColorControl

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ExtendedColorControl : ExtendedColorControlTrait.Attributes, MatterTrait, ExtendedColorControlCommands


API for the ExtendedColorControl trait. This trait provides additional features related to color control and is an extension of the Matter standard trait, ColorControl.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public properties

open TraitFactory<ExtendedColorControl>

Inherited functions

From com.google.home.google.ExtendedColorControlCommands
suspend Unit
moveToColorHsv(hue: Float, saturation: Float, value: Float)

Moves a device to the color specified in HSV semantics.

BatchableCommand<Unit>
moveToColorHsvBatchable(hue: Float, saturation: Float, value: Float)

The batchable version of moveToColorHsv command.

suspend Unit
moveToColorName(colorName: String)

Moves the device to the color named.

BatchableCommand<Unit>

The batchable version of moveToColorName command.

suspend Unit
moveToColorRgb(red: UByte, green: UByte, blue: UByte)

Moves a device to the color specified in RGB semantics.

BatchableCommand<Unit>
moveToColorRgbBatchable(red: UByte, green: UByte, blue: UByte)

The batchable version of moveToColorRgb command.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

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

ULong?

Unix timestamp when the color loop effect is expected to end.

UByte?

The current color of blue in RGB semantics, with a range of 0 to 255.

UByte?

The current color of green in RGB semantics, with a range of 0 to 255.

Float?

The current hue in HSV semantics, with a range of 0 to 360.

String?

Name of the current color.

UByte?

The current color of red in RGB semantics, with a range of 0 to 255.

Float?

The current saturation in HSV semantics, with a range of 0 to 1.

Float?

The current value in HSV semantics, with a range of 0 to 1.

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: ExtendedColorControl.Attribute): Boolean

supports

fun supports(command: ExtendedColorControl.Command): Boolean

Public properties

factory

open val factoryTraitFactory<ExtendedColorControl>