StateChangeEvent

interface StateChangeEvent<T : Trait> : Event


An event that represents a change in the state of a trait.

Summary

Public properties

T

The new state of the trait.

T?

Optional.

Id

The ID of the trait that changed.

Inherited properties

From com.google.home.Event
Id

ID of the Event.

EventImportance

Importance of the event.

String

Event name.

ULong

Event number.

open String?

The PartId of the part that emitted this event, if applicable.

open ClusterStruct?

The ClusterStruct payload of this event, if applicable.

Instant

Time of the event.

Public properties

newState

val newState: T

The new state of the trait.

oldState

val oldState: T?

Optional. The old state of the trait. This field is not guaranteed to be present.

traitId

val traitIdId

The ID of the trait that changed.