Fill

@Generated(value = ["GoogleHomePlatformCodegen"])
interface Fill : FillTrait.Attributes, MatterTrait, FillCommands


API for the Fill trait. This trait belongs to devices that support being filled such as a bathtub.

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<Fill>

Inherited functions

From com.google.home.google.FillCommands
suspend Unit
fill(fill: Boolean, fillLevel: String, fillPercent: Float)

Fill or drain the device.

BatchableCommand<Unit>
fillBatchable(fill: Boolean, fillLevel: String, fillPercent: Float)

The batchable version of fill command.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

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

FillTrait.AvailableFillLevels?

Describes different levels of filling the device.

UShort

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

String?

The current levelName from the availableFillLevels attribute at which the device is filled.

Float?

The current fill level percentage.

FillTrait.FillFeature

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.

Boolean?

Is true if the device is filled to any level, false if the device is completely drained.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: Fill.Attribute): Boolean

supports

fun supports(command: Fill.Command): Boolean

Public properties

factory

open val factoryTraitFactory<Fill>