ExtendedColorControlTrait.Attributes

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ExtendedColorControlTrait.Attributes : ClusterStruct

Known direct subclasses
ExtendedColorControl

API for the ExtendedColorControl trait.


Attributes for the ExtendedColorControl cluster.

Summary

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public properties

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.

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

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

acceptedCommandList

val acceptedCommandList: List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

attributeList

val attributeList: List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

clusterRevision

val clusterRevision: UShort

The revision of the server cluster specification supported by the cluster instance.

colorLoopEndTimestampSeconds

val colorLoopEndTimestampSeconds: ULong?

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

Access type: Read

currentBlue

val currentBlue: UByte?

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

Access type: Read

currentGreen

val currentGreen: UByte?

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

Access type: Read

currentHue

val currentHue: Float?

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

Access type: Read

currentName

val currentName: String?

Name of the current color.

Access type: Read

currentRed

val currentRed: UByte?

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

Access type: Read

currentSaturation

val currentSaturation: Float?

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

Access type: Read

currentValue

val currentValue: Float?

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

Access type: Read

featureMap

val featureMap: ExtendedColorControlTrait.Feature

Whether the server supports zero or more optional cluster features. A cluster feature is a set of cluster elements that are mandatory or optional for a defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the corresponding bit is set to 1, otherwise the bit is set to 0 (zero).

generatedCommandList

val generatedCommandList: List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.