PowerSourceTrait.Attributes

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

Known direct subclasses
PowerSource

API for the PowerSource trait.


Attributes for the PowerSource 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<PowerSourceTrait.BatChargeFaultEnum>?

Indicates the set of battery charge faults currently detected by the device on this power source.

List<PowerSourceTrait.BatFaultEnum>?

Indicates the set of battery faults currently detected by the device on this power source.

List<PowerSourceTrait.WiredFaultEnum>?

The set of wired faults currently detected by the device on this power source.

List<UInt>

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

String?

The string representing the ANSI designation for the battery, as specified in ANSI C18.

PowerSourceTrait.BatApprovedChemistryEnum?

ID of the preferred chemistry of the battery source, as specified in BatApprovedChemistryEnum.

UInt?

The preferred minimum charge capacity rating in milliampere-hours of battery cells or packs in the battery source.

PowerSourceTrait.BatChargeLevelEnum?

The ranking of the charge level of the battery used to indicate when intervention is required, as specified in BatChargeLevelEnum.

PowerSourceTrait.BatChargeStateEnum?

The state of the battery charge, as specified in BatChargeStateEnum.

UInt?

The assessed current in milliamps being supplied to charge the battery source.

PowerSourceTrait.BatCommonDesignationEnum?

The ID of the common or colloquial designation of the battery, as specified in BatCommonDesignationEnum.

Boolean?

Indicates whether the device can remain operational while the battery source is charging.

String?

The string representing the IEC designation for the battery, as specified in IEC 60086.

UByte?

The estimated percentage of battery charge remaining until the battery can no longer provide power to the device.

Boolean?

Indicates if the device detects that the batteries are properly installed.

UByte?

The number of battery cells or packs in the battery source.

PowerSourceTrait.BatReplaceabilityEnum?

Indicates the replaceability of the battery as specified in BatReplaceabilityEnum.

String?

A user-facing description of this battery, containing information required to identify a replacement, such as form factor, chemistry, or preferred manufacturer.

Boolean?

Indicates if the battery needs to be replaced.

UInt?

The estimated time in seconds before the battery will no longer be able to provide power to the device.

UInt?

The estimated time in seconds before the battery source is fully charged.

UInt?

The currently measured output voltage of the battery in millivolts.

UShort

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

String?

A user-facing description of the source, used to distinguish it from other power sources.

List<UShort>?

A list of endpoints that are powered by the source defined by this cluster.

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?

The relative preference with which the device selects the source to provide power.

PowerSourceTrait.PowerSourceStatusEnum?

The participation of the power source in providing power to the node, as specified in PowerSourceStatusEnum.

UInt?

The assessed instantaneous current draw of the device on the hard-wired source, in milliamps.

UShort?

The assessed frequency of the voltage, currently provided by the hard-wired source, in Hz.

UInt?

The assessed RMS or DC voltage currently provided by the hard-wired source, in millivolts.

PowerSourceTrait.WiredCurrentTypeEnum?

The type of current that the device expects to be provided by the hard-wired source, as specified in WiredCurrentTypeEnum.

UInt?

The maximum current in milliamps, given in the device's regulatory compliance label, expected to be provided by the hard-wired source.

UInt?

The nominal voltage in millivolts, given in the device's regulatory compliance label, expected to be provided by the hard-wired source.

Boolean?

Indicates if the device detects that the hard-wired power source is properly connected.

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 acceptedCommandListList<UInt>

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

activeBatChargeFaults

val activeBatChargeFaultsList<PowerSourceTrait.BatChargeFaultEnum>?

Indicates the set of battery charge faults currently detected by the device on this power source. This set is represented as a list in BatChargeFaultEnum. When the device detects that a fault has been raised, the appropriate BatChargeFaultEnum value is added to this list. When the device detects that all conditions contributing to a fault have been cleared, the corresponding value is removed from this list. An empty list indicates that there are currently no active faults.

Access type: Read

activeBatFaults

val activeBatFaultsList<PowerSourceTrait.BatFaultEnum>?

Indicates the set of battery faults currently detected by the device on this power source. This set is represented as a list in BatFaultEnum. When the device detects that a fault has been raised, the appropriate BatFaultEnum value is added to this list. When the device detects that all conditions contributing to a fault have been cleared, the corresponding value is removed from this list. An empty list indicates that there are currently no active faults.

Access type: Read

activeWiredFaults

val activeWiredFaultsList<PowerSourceTrait.WiredFaultEnum>?

The set of wired faults currently detected by the device on this power source. This set is represented as a list of WiredFaultEnum. When the device detects that a fault has been raised, the appropriate WiredFaultEnum value is added to this list, provided this value is not already present in the list. This list should not contain more than one instance of a specific WiredFaultEnum value. When the device detects that all conditions contributing to a fault have been cleared, the corresponding WiredFaultEnum value is removed from this list. An empty list indicates that there are currently no active faults.

Access type: Read

attributeList

val attributeListList<UInt>

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

batAnsiDesignation

val batAnsiDesignationString?

The string representing the ANSI designation for the battery, as specified in ANSI C18.

Access type: Read

batApprovedChemistry

val batApprovedChemistryPowerSourceTrait.BatApprovedChemistryEnum?

ID of the preferred chemistry of the battery source, as specified in BatApprovedChemistryEnum.

Access type: Read

batCapacity

val batCapacityUInt?

The preferred minimum charge capacity rating in milliampere-hours of battery cells or packs in the battery source.

Access type: Read

batChargeLevel

val batChargeLevelPowerSourceTrait.BatChargeLevelEnum?

The ranking of the charge level of the battery used to indicate when intervention is required, as specified in BatChargeLevelEnum.

Access type: Read

batChargeState

val batChargeStatePowerSourceTrait.BatChargeStateEnum?

The state of the battery charge, as specified in BatChargeStateEnum.

Access type: Read

batChargingCurrent

val batChargingCurrentUInt?

The assessed current in milliamps being supplied to charge the battery source. A value of null indicates that the device is currently unable to assess the value.

Access type: Read

batCommonDesignation

val batCommonDesignationPowerSourceTrait.BatCommonDesignationEnum?

The ID of the common or colloquial designation of the battery, as specified in BatCommonDesignationEnum.

Access type: Read

batFunctionalWhileCharging

val batFunctionalWhileChargingBoolean?

Indicates whether the device can remain operational while the battery source is charging.

Access type: Read

batIecDesignation

val batIecDesignationString?

The string representing the IEC designation for the battery, as specified in IEC 60086.

Access type: Read

batPercentRemaining

val batPercentRemainingUByte?

The estimated percentage of battery charge remaining until the battery can no longer provide power to the device. Values are expressed in half-percent units, ranging from 0 to 200. For example, a value of 48 is equivalent to 24%. A value of null indicates that the device is currently unable to assess the value. Changes to this attribute are reported either once every 10 seconds or when the value changes between null and a non-null value.

Access type: Read

batPresent

val batPresentBoolean?

Indicates if the device detects that the batteries are properly installed.

Access type: Read

batQuantity

val batQuantityUByte?

The number of battery cells or packs in the battery source.

Access type: Read

batReplaceability

val batReplaceabilityPowerSourceTrait.BatReplaceabilityEnum?

Indicates the replaceability of the battery as specified in BatReplaceabilityEnum.

Access type: Read

batReplacementDescription

val batReplacementDescriptionString?

A user-facing description of this battery, containing information required to identify a replacement, such as form factor, chemistry, or preferred manufacturer.

Access type: Read

batReplacementNeeded

val batReplacementNeededBoolean?

Indicates if the battery needs to be replaced.

Access type: Read

batTimeRemaining

val batTimeRemainingUInt?

The estimated time in seconds before the battery will no longer be able to provide power to the device. A value of null indicates that the device is currently unable to assess the value. Changes to this attribute are reported either once every 10 seconds or when the value changes between null and a non-null value.

Access type: Read

batTimeToFullCharge

val batTimeToFullChargeUInt?

The estimated time in seconds before the battery source is fully charged. A value of null indicates that the device is currently unable to assess the value. Changes to this attribute are reported either once every 10 seconds or when the value changes between null and a non-null value.

Access type: Read

batVoltage

val batVoltageUInt?

The currently measured output voltage of the battery in millivolts. A value of null indicates that the device is currently unable to assess the value.

Access type: Read

clusterRevision

val clusterRevisionUShort

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

description

val descriptionString?

A user-facing description of the source, used to distinguish it from other power sources.

Access type: Read

endpointList

val endpointListList<UShort>?

A list of endpoints that are powered by the source defined by this cluster. Multiple instances of this cluster can list the same endpoint because it is possible for power for an endpoint to come from multiple sources. In that case, the Order attribute indicates their priority. For each power source on a device, there is only one instance of this cluster. A cluster instance with an empty list indicates that the power source is for the entire device, which includes all endpoints. A cluster instance with a non-empty list includes the endpoint for which the cluster instance resides.

Access type: Read

featureMap

val featureMapPowerSourceTrait.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 generatedCommandListList<UInt>

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

order

val orderUByte?

The relative preference with which the device selects the source to provide power. A source with a lower order is selected by the device to provide power before any other source with a higher order, if the lower-order source is available.

Access type: Read

status

val statusPowerSourceTrait.PowerSourceStatusEnum?

The participation of the power source in providing power to the node, as specified in PowerSourceStatusEnum.

Access type: Read

wiredAssessedCurrent

val wiredAssessedCurrentUInt?

The assessed instantaneous current draw of the device on the hard-wired source, in milliamps. A value of null indicates the device is currently unable to assess the value. If the wired source is not connected, but the device is still able to assess a value, then the assessed value can be reported.

Access type: Read

wiredAssessedInputFrequency

val wiredAssessedInputFrequencyUShort?

The assessed frequency of the voltage, currently provided by the hard-wired source, in Hz. A value of null indicates that the device is currently unable to assess the value. If the wired source is not connected, but the device is still able to assess a value, then the assessed value can be reported.

Access type: Read

wiredAssessedInputVoltage

val wiredAssessedInputVoltageUInt?

The assessed RMS or DC voltage currently provided by the hard-wired source, in millivolts. A value of null indicates that the device is currently unable to assess the value. If the wired source is not connected, but the device is still able to assess a value, then the assessed value can be reported.

Access type: Read

wiredCurrentType

val wiredCurrentTypePowerSourceTrait.WiredCurrentTypeEnum?

The type of current that the device expects to be provided by the hard-wired source, as specified in WiredCurrentTypeEnum.

Access type: Read

wiredMaximumCurrent

val wiredMaximumCurrentUInt?

The maximum current in milliamps, given in the device's regulatory compliance label, expected to be provided by the hard-wired source.

Access type: Read

wiredNominalVoltage

val wiredNominalVoltageUInt?

The nominal voltage in millivolts, given in the device's regulatory compliance label, expected to be provided by the hard-wired source.

Access type: Read

wiredPresent

val wiredPresentBoolean?

Indicates if the device detects that the hard-wired power source is properly connected.

Access type: Read