Brightness

@Generated(value = ["GoogleHomePlatformCodegen"])
interface Brightness : BrightnessTrait.Attributes, MatterTrait, BrightnessCommands


API for the Brightness trait. This trait provides a brightness extension to the LevelControl trait and is only for use with the Automation API.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public functions

Boolean
Boolean

Public properties

open TraitFactory<Brightness>

Inherited functions

From com.google.home.google.BrightnessCommands
suspend Unit

Incremental step brightness.

BatchableCommand<Unit>

The batchable version of brightnessStep command.

suspend Unit
moveToBrightness(brightnessPercent: UByte)

Move the brightness of the device to the specified brightness.

BatchableCommand<Unit>
moveToBrightnessBatchable(brightnessPercent: UByte)

The batchable version of moveToBrightness command.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

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

UByte?

The current brightness of the device, in percentage, with a range of 0-100.

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

supports

fun supports(command: Brightness.Command): Boolean

Public properties

factory

open val factoryTraitFactory<Brightness>