PowerSource

interface PowerSource : PowerSourceTrait.Attributes, MatterTrait


API for the PowerSource trait.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public functions

Boolean

Public properties

open TraitFactory<PowerSource>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.matter.standard.PowerSourceTrait.Attributes
List<UInt>

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

List<PowerSourceTrait.BatChargeFaultEnum>?
List<PowerSourceTrait.BatFaultEnum>?
List<PowerSourceTrait.WiredFaultEnum>?
List<UInt>

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

String?
PowerSourceTrait.BatApprovedChemistryEnum?
UInt?
PowerSourceTrait.BatChargeLevelEnum?
PowerSourceTrait.BatChargeStateEnum?
UInt?
PowerSourceTrait.BatCommonDesignationEnum?
Boolean?
String?
UByte?
Boolean?
UByte?
PowerSourceTrait.BatReplaceabilityEnum?
String?
Boolean?
UInt?
UInt?
UInt?
UShort

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

String?
List<UShort>?
PowerSourceTrait.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.

UByte?
PowerSourceTrait.PowerSourceStatusEnum?
UInt?
UShort?
UInt?
PowerSourceTrait.WiredCurrentTypeEnum?
UInt?
UInt?
Boolean?
From com.google.home.Trait

Public functions

supports

fun supports(attribute: PowerSource.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<PowerSource>