TimerTrait.Attributes

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

Known direct subclasses
Timer

API for the Timer trait.


Attributes for the Timer 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.

Boolean?

Indicates whether the device supports one-way (true) or two-way (false) communication.

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

Int?

The largest timer setting, in seconds, that is available on the device.

Boolean?

Indicates that an active timer exists but is currently paused.

Int?

The remaining number of seconds on the timer.

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.

commandOnlyTimer

val commandOnlyTimer: Boolean?

Indicates whether the device supports one-way (true) or two-way (false) communication.

Access type: Read

featureMap

val featureMap: TimerTrait.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.

maxTimerLimitSeconds

val maxTimerLimitSeconds: Int?

The largest timer setting, in seconds, that is available on the device.

Access type: Read

timerPaused

val timerPaused: Boolean?

Indicates that an active timer exists but is currently paused.

Access type: Read

timerRemainingSeconds

val timerRemainingSeconds: Int?

The remaining number of seconds on the timer.

Access type: Read